From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Liu Ping Fan Date: Tue, 11 Sep 2012 15:51:52 +0800 Message-Id: <1347349912-15611-12-git-send-email-qemulist@gmail.com> In-Reply-To: <1347349912-15611-1-git-send-email-qemulist@gmail.com> References: <1347349912-15611-1-git-send-email-qemulist@gmail.com> Subject: [Qemu-devel] [PATCH V3 11/11] vcpu: push mmio dispatcher out of big lock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , Marcelo Tosatti , Avi Kivity , Anthony Liguori , Paolo Bonzini 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: -- 1.7.4.4