From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx0tq-00028X-HQ for qemu-devel@nongnu.org; Thu, 02 Aug 2012 15:17:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx0tp-0003j4-CD for qemu-devel@nongnu.org; Thu, 02 Aug 2012 15:17:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx0tp-0003iy-3O for qemu-devel@nongnu.org; Thu, 02 Aug 2012 15:17:33 -0400 From: Alex Williamson Date: Thu, 02 Aug 2012 13:17:29 -0600 Message-ID: <20120802190936.16069.89673.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/4] VFIO-based PCI device assignment for QEMU 1.2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: aik@ozlabs.ru, jan.kiszka@siemens.com, qemu-devel@nongnu.org, kvm@vger.kernel.org v2: - Update kernel header update script - Pull in all changes as a result of that - Note that vfio.h is non yet and installed header, but I'll fix that on my next kernel vfio pull request. - New tag for v2 as noted below. Thanks, Alex VFIO kernel support was just merged into Linux, so I'd like to formally propose inclusion of the QEMU vfio-pci driver for QEMU 1.2. Included here is support for x86 PCI device assignment. PCI INTx is not yet enabled, but devices making use of either MSI or MSI-X work. The level irqfd and eoifd support I've proposed for KVM enable an accelerated patch for this through KVM. I'd like to get this base driver in first and enable the remaining support in-tree. I've split this version up a little from the RFC to make it a bit easier to review. Review comments from Blue Swirl and Avi are already incorporated, including Avi's requests to simplify both the PCI BAR mapping and unmapping paths. This series is also available at: git://github.com/awilliam/qemu-vfio.git tags/vfio-pci-for-qemu-1.2-v2 Thanks, Alex --- Alex Williamson (4): vfio: Enable vfio-pci and mark supported vfio: vfio-pci device assignment driver Update Linux kernel headers Update kernel header script to include vfio MAINTAINERS | 5 configure | 12 hw/i386/Makefile.objs | 1 hw/vfio_pci.c | 1853 +++++++++++++++++++++++++++++++++++++ hw/vfio_pci.h | 101 ++ linux-headers/asm-s390/kvm.h | 2 linux-headers/asm-s390/kvm_para.h | 2 linux-headers/asm-x86/kvm.h | 1 linux-headers/asm-x86/kvm_para.h | 7 linux-headers/linux/kvm.h | 3 linux-headers/linux/vfio.h | 368 +++++++ scripts/update-linux-headers.sh | 2 12 files changed, 2354 insertions(+), 3 deletions(-) create mode 100644 hw/vfio_pci.c create mode 100644 hw/vfio_pci.h create mode 100644 linux-headers/linux/vfio.h