From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5cyV-00057K-TJ for qemu-devel@nongnu.org; Thu, 18 Jun 2015 12:47:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5cyO-0002Sw-RH for qemu-devel@nongnu.org; Thu, 18 Jun 2015 12:47:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5cyO-0002Sn-M9 for qemu-devel@nongnu.org; Thu, 18 Jun 2015 12:47:28 -0400 From: Paolo Bonzini Date: Thu, 18 Jun 2015 18:47:17 +0200 Message-Id: <1434646046-27150-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH for-2.4 0/9] KVM: Do I/O outside BQL whenever possible List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com 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 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 and simplify it 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 | 22 +++++++++++---- exec.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ hw/acpi/core.c | 1 + include/exec/memory.h | 26 ++++++++++++++++++ include/qemu/main-loop.h | 10 +++++++ kvm-all.c | 10 +++++-- memory.c | 17 +++++++----- stubs/iothread-lock.c | 5 ++++ target-i386/kvm.c | 18 +++++++++++++ target-mips/kvm.c | 4 +++ target-ppc/kvm.c | 4 +++ 11 files changed, 173 insertions(+), 13 deletions(-) -- 1.8.3.1