From patchwork Fri Nov 22 15:15:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 293503 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B7FF12C010A for ; Sat, 23 Nov 2013 02:25:41 +1100 (EST) Received: from localhost ([::1]:39484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjsbz-0002eP-6z for incoming@patchwork.ozlabs.org; Fri, 22 Nov 2013 10:25:39 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=OUU5UUngDg4gqiLYNttpnmILHWTl54WfK9uqRUwBguA=; b=rKGMR/dtQo74XmlUTFKmmvsx5rWAkc/kBg4//9U6vmrPxJGMfPEWVYTnYp0/BCTxBO GtcoqwAYvgis9ylPCXWdmvK0iCrpQnJRbODfKvmaof5fg2sQ6m/tUc93kDDk7i0NJAHC /OOqHFGXleEkSRFPMEq3gzlvMKf9+z7Htk3sSgIUawLnM7NeI5l37Y4zhf2w0v6BcWnn VmURMA5KK795ZHq111aukKnHLsl0oleSSucfwwtyYj8mXhmV7Y4m6oazOSG8HXGMNcWd UMDV5MvwF8/DI8+3hlkQFAzv6QM/BoCPBUCNQ/ZD+6RCIKk6elrPBmSbO7dRXMYqqhTf XF1A== X-Received: by 10.112.138.164 with SMTP id qr4mr567590lbb.49.1385133654186; 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 To: qemu-devel@nongnu.org Date: Fri, 22 Nov 2013 16:15:58 +0100 Message-Id: <1385133359-13770-8-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1385133359-13770-1-git-send-email-edgar.iglesias@gmail.com> References: <1385133359-13770-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: 2a00:1450:4010:c03::22a Subject: [Qemu-devel] [RFC PATCH 7/8] 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 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);