From patchwork Tue Sep 11 07:51:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pingfan liu X-Patchwork-Id: 183051 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 236DF2C0086 for ; Tue, 11 Sep 2012 18:20:19 +1000 (EST) Received: from localhost ([::1]:58505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBLHr-0000N6-Sk for incoming@patchwork.ozlabs.org; Tue, 11 Sep 2012 03:53:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBLHc-0000Bi-UG for qemu-devel@nongnu.org; Tue, 11 Sep 2012 03:53:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBLHX-0007St-7l for qemu-devel@nongnu.org; Tue, 11 Sep 2012 03:53:20 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:43411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBLHX-0007Py-1i for qemu-devel@nongnu.org; Tue, 11 Sep 2012 03:53:15 -0400 Received: by mail-pz0-f45.google.com with SMTP id n15so163126dad.4 for ; Tue, 11 Sep 2012 00:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=gU2eM63aFRghUoCLqECIfsuT2Jd0oVTz+XKjoVAD/Bs=; b=PQUn0s6yGG4gdMjq/56CgDikVYBrAOnqjmqgQ+Q8U59RAMaht0RGk+eO6lZl51MBZn IUBKLrfCI93yWCV5L9i6wK+IK+SXmYwH8Qr8ff7YEbZNKtKwF1tZ+myDETW7TVicCjFe GECADy0wxTH140CG9ryWWdEBeaGTvJTVtnxaAqmr+2HU/YVsxDKLv/gawaSFpEKltc/2 6yNa+IhPuumk/bWqropDlf+txKk3+2xvoWC8WXDbErEuIyjOMYlzCsKE2GOOTMgl4KfI Ooc9fqlzh7SVZ5SU69UiasgmZwUYQTCexbszl2U5tzMAZfX4SbdPBFzQcLrW3j0FYuJp kXHw== Received: by 10.68.231.130 with SMTP id tg2mr10239492pbc.70.1347349994440; Tue, 11 Sep 2012 00:53:14 -0700 (PDT) Received: from localhost ([202.108.130.138]) by mx.google.com with ESMTPS id hf1sm9371685pbc.42.2012.09.11.00.53.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 00:53:13 -0700 (PDT) From: Liu Ping Fan To: qemu-devel@nongnu.org Date: Tue, 11 Sep 2012 15:51:52 +0800 Message-Id: <1347349912-15611-12-git-send-email-qemulist@gmail.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1347349912-15611-1-git-send-email-qemulist@gmail.com> References: <1347349912-15611-1-git-send-email-qemulist@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.45 Cc: Jan Kiszka , Marcelo Tosatti , Avi Kivity , Anthony Liguori , Paolo Bonzini Subject: [Qemu-devel] [PATCH V3 11/11] vcpu: push mmio dispatcher out of big lock 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: Liu Ping Fan Signed-off-by: Liu Ping Fan --- kvm-all.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 34b02c1..ef7cd5f 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1562,10 +1562,13 @@ int kvm_cpu_exec(CPUArchState *env) break; case KVM_EXIT_MMIO: DPRINTF("handle_mmio\n"); + qemu_mutex_unlock_iothread(); cpu_physical_memory_rw(run->mmio.phys_addr, run->mmio.data, run->mmio.len, run->mmio.is_write); + qemu_mutex_lock_iothread(); + ret = 0; break; case KVM_EXIT_IRQ_WINDOW_OPEN: