diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-18 18:47:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-01 15:45:51 +0200 |
commit | de7ea885c5394c1fba7443cbf33bd2745d32e6c2 (patch) | |
tree | 4ca22e1a89ad5aba087b22dc5218e27a4629012e | |
parent | 7070e085d490c396f9237c8f10bf8b6e69cd0066 (diff) |
kvm: Switch to unlocked MMIO
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 <pbonzini@redhat.com>
Message-Id: <1434646046-27150-10-git-send-email-pbonzini@redhat.com>
-rw-r--r-- | kvm-all.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1814,13 +1814,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: |