[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 9/9] kvm: Switch to unlocked MMIO
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 9/9] kvm: Switch to unlocked MMIO |
Date: |
Thu, 18 Jun 2015 18:47:26 +0200 |
Do not take the BQL before dispatching MMIO requests of KVM VCPUs.
Instead, address_space_rw will do it if necessary. This enables completely
BQL-free MMIO handling in KVM mode for upcoming devices with fine-grained
locking.
Signed-off-by: Paolo Bonzini <address@hidden>
---
kvm-all.c | 3 +--
1 file changed, 3 deletions(-)
diff --git a/kvm-all.c b/kvm-all.c
index d3831c4..87b00b8 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1845,13 +1845,12 @@ int kvm_cpu_exec(CPUState *cpu)
break;
case KVM_EXIT_MMIO:
DPRINTF("handle_mmio\n");
- qemu_mutex_lock_iothread();
+ /* Called outside BQL */
address_space_rw(&address_space_memory,
run->mmio.phys_addr, attrs,
run->mmio.data,
run->mmio.len,
run->mmio.is_write);
- qemu_mutex_unlock_iothread();
ret = 0;
break;
case KVM_EXIT_IRQ_WINDOW_OPEN:
--
1.8.3.1
- [Qemu-devel] [PATCH for-2.4 0/9] KVM: Do I/O outside BQL whenever possible, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 2/9] main-loop: introduce qemu_mutex_iothread_locked, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 1/9] main-loop: use qemu_mutex_lock_iothread consistently, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 3/9] memory: Add global-locking property to memory regions, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 4/9] exec: pull qemu_flush_coalesced_mmio_buffer() into address_space_rw/ld*/st*, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 5/9] memory: let address_space_rw/ld*/st* run outside the BQL, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 6/9] kvm: First step to push iothread lock out of inner run loop, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 7/9] kvm: Switch to unlocked PIO, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 8/9] acpi: mark PMTIMER as unlocked, Paolo Bonzini, 2015/06/18
- [Qemu-devel] [PATCH 9/9] kvm: Switch to unlocked MMIO,
Paolo Bonzini <=