From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su1a8-0006gw-II for qemu-devel@nongnu.org; Wed, 25 Jul 2012 09:24:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Su1Zz-0000sC-Dp for qemu-devel@nongnu.org; Wed, 25 Jul 2012 09:24:52 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:32812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su1Zz-0000qr-7K for qemu-devel@nongnu.org; Wed, 25 Jul 2012 09:24:43 -0400 From: Peter Maydell Date: Wed, 25 Jul 2012 14:24:26 +0100 Message-Id: <1343222672-25312-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/6] split out uses of kvm_irqchip_in_kernel() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexander Graf , Marcelo Tosatti , Jan Kiszka , Avi Kivity , patches@linaro.org This patch series removes all uses of kvm_irqchip_in_kernel() from architecture-independent code, by creating a set of more specific functions instead to test for the particular aspects of behaviour that the calling code is actually interested in. The uses in x86-specific code could in theory be further broken down into kvm_ioapic(), kvm_pit(), etc, but I leave that for one of the x86 maintainers if they think it's worthwhile. Peter Maydell (6): kvm: Decouple 'interrupt injection is async' from 'kernel irqchip' kvm: Rename kvm_irqchip_set_irq to kvm_inject_async_irq kvm: Move kvm_allows_irq0_override() to target-i386 kvm: Don't assume irqchip-in-kernel implies irqfds kvm: Don't assume irqchip implies MSI routing via irqfds kvm: Add documentation comment for kvm_irqchip_in_kernel() cpus.c | 3 +- hw/kvm/i8259.c | 2 +- hw/kvm/ioapic.c | 2 +- hw/pc.c | 1 + hw/virtio-pci.c | 4 +- kvm-all.c | 24 ++++++++++++---------- kvm-stub.c | 8 ++---- kvm.h | 48 ++++++++++++++++++++++++++++++++++++++++++-- target-i386/Makefile.objs | 1 + target-i386/kvm-stub.c | 17 +++++++++++++++ target-i386/kvm.c | 12 +++++++++++ target-i386/kvm_i386.h | 16 +++++++++++++++ 12 files changed, 114 insertions(+), 24 deletions(-) create mode 100644 target-i386/kvm-stub.c create mode 100644 target-i386/kvm_i386.h -- 1.7.5.4