From patchwork Mon Dec 16 08:05: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: 301507 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 45A922C0085 for ; Mon, 16 Dec 2013 19:14:19 +1100 (EST) Received: from localhost ([::1]:54412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTJf-0002Dj-EF for incoming@patchwork.ozlabs.org; Mon, 16 Dec 2013 03:14:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTIP-0000oA-8m for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:13:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsTII-0004T9-Kg for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:12:57 -0500 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:40323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsTII-0004T5-DP for qemu-devel@nongnu.org; Mon, 16 Dec 2013 03:12:50 -0500 Received: by mail-pa0-f53.google.com with SMTP id hz1so2607199pad.26 for ; Mon, 16 Dec 2013 00:12:49 -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=ewhuGT/WTAVQkspUrPSUL1a7rIvbgUQ2BeEGDNQqs8w=; b=hfQMx1ZkRKMkvey8N4p6SWm5e9+WidEVs/6gRkt5V3JgQsX2OkQSuYSuyLJUDOTtG+ wukL4YakqC/1GysV27V4Nab1lF5k2UXZvNaR7nGu0huLXLMdnlIXT8+W1etOnqyesH+o uWv8KVsjCYKEfLUS5m1SejJIV0qCQQcbERpIr5cdDUQ6cSv4bQxnWmbJMUOzWIwOp2g5 XgBr6OuY4fkK9CfCLMzws8mhA6VWZ/2xCBsRCdj/x2Gxt6OZx1of2c59N/AZXlv2IOYe ciet7YuPWlx9T29F0UFLBrKOMyJCaCuUpzp0BepBySdx2aU6p4uZsp/3ol2zR7awl7R7 ArDg== X-Received: by 10.66.16.131 with SMTP id g3mr18840920pad.138.1387181569586; Mon, 16 Dec 2013 00:12:49 -0800 (PST) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id qz9sm24335501pbc.3.2013.12.16.00.12.48 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 16 Dec 2013 00:12:49 -0800 (PST) From: edgar.iglesias@gmail.com To: qemu-devel@nongnu.org Date: Mon, 16 Dec 2013 18:05:58 +1000 Message-Id: <1387181170-23267-11-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1387181170-23267-1-git-send-email-edgar.iglesias@gmail.com> References: <1387181170-23267-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:400e:c03::235 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 v1 10/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 edb6a43..203c8e4 100644 --- a/exec.c +++ b/exec.c @@ -1810,6 +1810,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);