From patchwork Mon Jan 13 07:39:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 309747 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 217FC2C009C for ; Mon, 13 Jan 2014 19:11:04 +1100 (EST) Received: from localhost ([::1]:40951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cEK-0002pQ-G5 for incoming@patchwork.ozlabs.org; Mon, 13 Jan 2014 02:46:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cCb-0000tr-G5 for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:45:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2cCS-0005Em-8R for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:44:53 -0500 Received: from mail-qa0-x22e.google.com ([2607:f8b0:400d:c00::22e]:56416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cCS-0005Ei-3z for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:44:44 -0500 Received: by mail-qa0-f46.google.com with SMTP id ii20so2385914qab.5 for ; Sun, 12 Jan 2014 23:44:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RIAkm+Qzgem+aWj/OheciZv+ggIaHIQKrd8PuBjiNDU=; b=OO+lSsvsJWbdsoBcLv9g2bb8Zono1XvvMQHGcNuVQf14Coa1xJLwzuovJqyaVeKRmR smZkgIsQiX9BjlJz6BBfhyQ0FCM2pjp/ct38wsNq8krpJpUSBg6aYur6Uwa5yXBk52l8 ZGfiHFwjNhIvZ6Lqphq/XwxB2SN8HMZ/dSNSXNEKDAnD9n+X+icPGVwHtFAy8S7sCxDE Uqj7PyNIvWCOWVhn20UIE2QeP1Ol8t1OuC/KcHSEI/eGUTD9pO/U1Zoq1BeKV9E6sfKY 1SBj72BmTGro94tbwetbDeLDGWq85f+yuVyi/hs11WvBf88DeZz1bbP8kAnEfmayhvEs hQKA== X-Received: by 10.224.115.19 with SMTP id g19mr1611186qaq.95.1389599083704; Sun, 12 Jan 2014 23:44:43 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id r9sm27125796qey.19.2014.01.12.23.44.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 12 Jan 2014 23:44:43 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Mon, 13 Jan 2014 17:39:47 +1000 Message-Id: <1389598802-14977-8-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1389598802-14977-1-git-send-email-edgar.iglesias@gmail.com> References: <1389598802-14977-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::22e Cc: peter.maydell@linaro.org, blauwirbel@gmail.com, aliguori@amazon.com, pcrost@xilinx.com, pbonzini@redhat.com, afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net Subject: [Qemu-devel] [PATCH v3 07/22] exec: On AS changes, only flush affected CPU TLBs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exec.c b/exec.c index dfad286..54aa790 100644 --- a/exec.c +++ b/exec.c @@ -1809,6 +1809,11 @@ static void tcg_commit(MemoryListener *listener) CPU_FOREACH(cpu) { CPUArchState *env = cpu->env_ptr; + /* FIXME: Disentangle the cpu.h circular files deps so we can + directly get the right CPU from listener. */ + if (cpu->tcg_as_listener != listener) { + continue; + } tlb_flush(env, 1); } }