From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsXY-0003dX-1x for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:21:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjsXP-0000CS-FO for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:21:03 -0500 Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:37304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsXP-0000CK-6o for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:55 -0500 Received: by mail-la0-f42.google.com with SMTP id ec20so1051924lab.1 for ; Fri, 22 Nov 2013 07:20:54 -0800 (PST) Received: from localhost (h59ec325f.selukar.dyn.perspektivbredband.net. [89.236.50.95]) by mx.google.com with ESMTPSA id c10sm24177441lbd.9.2013.11.22.07.20.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 Nov 2013 07:20:48 -0800 (PST) From: edgar.iglesias@gmail.com Date: Fri, 22 Nov 2013 16:15:58 +0100 Message-Id: <1385133359-13770-8-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1385133359-13770-1-git-send-email-edgar.iglesias@gmail.com> References: <1385133359-13770-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [RFC PATCH 7/8] exec: On AS changes, only flush affected CPU TLBs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@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 acbd2e6..f273a46 100644 --- a/exec.c +++ b/exec.c @@ -1715,6 +1715,11 @@ static void tcg_commit(MemoryListener *listener) reset the modified entries */ /* XXX: slow ! */ CPU_FOREACH(cpu) { + /* 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; + } CPUArchState *env = cpu->env_ptr; tlb_flush(env, 1); -- 1.7.10.4