[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-2.4 v2 0/9] KVM: Do I/O outside BQL whenever pos
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH for-2.4 v2 0/9] KVM: Do I/O outside BQL whenever possible |
Date: |
Wed, 24 Jun 2015 18:25:01 +0200 |
This is the rebased and updated version of the patches I posted a
couple months ago (well before soft freeze :)).
This version introduces a qemu_mutex_iothread_locked() primitive
in order to avoid recursive locking of the BQL. The previous
attempts, which used functions such as address_space_rw_unlocked,
required the introduction of a multitude of *_unlocked functions
(e.g. address_space_ldl_unlocked or dma_buf_write_unlocked).
Note that adding unlocked access to TCG would require reverting
commit 3b64349 (memory: Replace io_mem_read/write with
memory_region_dispatch_read/write, 2015-04-26).
Paolo
v1->v2: fix botched merge in patch 4 [Fam],
correct locking in patch 6 [Fam],
push down to kvm_arch_handle_exit in patch 6 [Christian]
Jan Kiszka (4):
memory: Add global-locking property to memory regions
memory: let address_space_rw/ld*/st* run outside the BQL
kvm: First step to push iothread lock out of inner run loop
kvm: Switch to unlocked PIO
Paolo Bonzini (5):
main-loop: use qemu_mutex_lock_iothread consistently
main-loop: introduce qemu_mutex_iothread_locked
exec: pull qemu_flush_coalesced_mmio_buffer() into
address_space_rw/ld*/st*
acpi: mark PMTIMER as unlocked
kvm: Switch to unlocked MMIO
cpus.c | 19 +++++++++++--
exec.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++
hw/acpi/core.c | 1 +
include/exec/memory.h | 26 +++++++++++++++++
include/qemu/main-loop.h | 10 +++++++
kvm-all.c | 8 ++++--
memory.c | 23 ++++++++--------
stubs/iothread-lock.c | 5 ++++
target-i386/kvm.c | 24 ++++++++++++++++
target-mips/kvm.c | 4 +++
target-ppc/kvm.c | 7 +++++
target-s390x/kvm.c | 3 ++
12 files changed, 185 insertions(+), 17 deletions(-)
--
1.8.3.1
- [Qemu-devel] [PATCH for-2.4 v2 0/9] KVM: Do I/O outside BQL whenever possible,
Paolo Bonzini <=
[Qemu-devel] [PATCH 4/9] exec: pull qemu_flush_coalesced_mmio_buffer() into address_space_rw/ld*/st*, Paolo Bonzini, 2015/06/24
[Qemu-devel] [PATCH 1/9] main-loop: use qemu_mutex_lock_iothread consistently, Paolo Bonzini, 2015/06/24