Re: [Qemu-devel] [PATCH 0/4] vfio-pci: pass the aer error to guest, part1
On Thu, Feb 04, 2016 at 09:31:04AM +0800, Cao jin wrote: > From: Chen Fan> > this patchset are splited out from my aer series patches, > this part of aer patches is harmless, and have been reviewed-by. > In order to avoid blocking it to merge, so I send it out independently > as part1. the part2 is under discussion. Thanks I acked the remaining patch. Alex, will you take it? > Chen Fan (4): > pcie: modify the capability size assert > vfio: make the 4 bytes aligned for capability size > aer: impove pcie_aer_init to support vfio device > pcie_aer: expose pcie_aer_msg() interface > > hw/pci-bridge/ioh3420.c| 2 +- > hw/pci-bridge/xio3130_downstream.c | 2 +- > hw/pci-bridge/xio3130_upstream.c | 2 +- > hw/pci/pcie.c | 2 +- > hw/pci/pcie_aer.c | 6 +++--- > hw/vfio/pci.c | 3 ++- > include/hw/pci/pcie_aer.h | 3 ++- > 7 files changed, 11 insertions(+), 9 deletions(-) > > -- > 1.9.3 > >
Re: [Qemu-devel] [PATCH 0/4] vfio-pci: pass the aer error to guest, part1
On Thu, 4 Feb 2016 13:28:53 +0200 "Michael S. Tsirkin"wrote: > On Thu, Feb 04, 2016 at 09:31:04AM +0800, Cao jin wrote: > > From: Chen Fan > > > > this patchset are splited out from my aer series patches, > > this part of aer patches is harmless, and have been reviewed-by. > > In order to avoid blocking it to merge, so I send it out > > independently as part1. the part2 is under discussion. Thanks > > I acked the remaining patch. > Alex, will you take it? If that's what you prefer, yes. Thanks, Alex > > Chen Fan (4): > > pcie: modify the capability size assert > > vfio: make the 4 bytes aligned for capability size > > aer: impove pcie_aer_init to support vfio device > > pcie_aer: expose pcie_aer_msg() interface > > > > hw/pci-bridge/ioh3420.c| 2 +- > > hw/pci-bridge/xio3130_downstream.c | 2 +- > > hw/pci-bridge/xio3130_upstream.c | 2 +- > > hw/pci/pcie.c | 2 +- > > hw/pci/pcie_aer.c | 6 +++--- > > hw/vfio/pci.c | 3 ++- > > include/hw/pci/pcie_aer.h | 3 ++- > > 7 files changed, 11 insertions(+), 9 deletions(-) > > > > -- > > 1.9.3 > > > >
[Qemu-devel] [PATCH 0/4] vfio-pci: pass the aer error to guest, part1
From: Chen Fanthis patchset are splited out from my aer series patches, this part of aer patches is harmless, and have been reviewed-by. In order to avoid blocking it to merge, so I send it out independently as part1. the part2 is under discussion. Thanks Chen Fan (4): pcie: modify the capability size assert vfio: make the 4 bytes aligned for capability size aer: impove pcie_aer_init to support vfio device pcie_aer: expose pcie_aer_msg() interface hw/pci-bridge/ioh3420.c| 2 +- hw/pci-bridge/xio3130_downstream.c | 2 +- hw/pci-bridge/xio3130_upstream.c | 2 +- hw/pci/pcie.c | 2 +- hw/pci/pcie_aer.c | 6 +++--- hw/vfio/pci.c | 3 ++- include/hw/pci/pcie_aer.h | 3 ++- 7 files changed, 11 insertions(+), 9 deletions(-) -- 1.9.3
[Qemu-devel] [PATCH 0/4] VFIO
This series implements the core VFIO infrastructure, documentation, an IOMMU backend suitable for x86 usage, and a PCI device driver. These patches are based on the previous v2 IOMMU Groups + VFIO patches and are dependent on the previously sent out PCI and IOMMU groups series found here: http://marc.info/?l=linux-kernelm=133835363021384 http://marc.info/?l=linux-kernelm=133835480021716 As noted in previous postings and the included documentation, VFIO provides secure, IOMMU protected, userspace access to I/O devices for use by things like PCI device assignment to virtual machines in Qemu. This driver is meant to replace existing KVM device assignment and hopefully take over much of what UIO does today. I'm looking for suggestions not only on the code, but on the best way to get this upstream. If we can get some initial blessing for this driver I'd be happy to host a next branch for it or submit it as a staging driver. I think Bjorn and Joerg would probably appreciate and kind of nod that this driver has legs in order to include the PCI and IOMMU backend support. Alexey Kardashevskiy has already posted an initial draft of POWER support for VFIO giving some validation as a cross architecture solution. These patches, as well as the PCI support patches and IOMMU group infrastructure can be found in git here: git://github.com/awilliam/linux-vfio.git (iommu-group-vfio-next-20120529) A qemu tree including a vfio-pci driver capable of assigning PCI devices to Qemu guests can be found here: git://github.com/awilliam/qemu-vfio.git (iommu-group-vfio) Thanks, Alex --- Alex Williamson (4): vfio: Add PCI device driver vfio: Type1 IOMMU implementation vfio: Add documentation vfio: VFIO core Documentation/ioctl/ioctl-number.txt |1 Documentation/vfio.txt | 315 +++ MAINTAINERS |8 drivers/Kconfig |2 drivers/Makefile |1 drivers/vfio/Kconfig | 16 drivers/vfio/Makefile|3 drivers/vfio/pci/Kconfig |8 drivers/vfio/pci/Makefile|4 drivers/vfio/pci/vfio_pci.c | 559 drivers/vfio/pci/vfio_pci_config.c | 1528 ++ drivers/vfio/pci/vfio_pci_intrs.c| 725 drivers/vfio/pci/vfio_pci_private.h | 91 ++ drivers/vfio/pci/vfio_pci_rdwr.c | 269 ++ drivers/vfio/vfio.c | 1422 drivers/vfio/vfio_iommu_type1.c | 754 + include/linux/vfio.h | 445 ++ 17 files changed, 6151 insertions(+) create mode 100644 Documentation/vfio.txt create mode 100644 drivers/vfio/Kconfig create mode 100644 drivers/vfio/Makefile create mode 100644 drivers/vfio/pci/Kconfig create mode 100644 drivers/vfio/pci/Makefile create mode 100644 drivers/vfio/pci/vfio_pci.c create mode 100644 drivers/vfio/pci/vfio_pci_config.c create mode 100644 drivers/vfio/pci/vfio_pci_intrs.c create mode 100644 drivers/vfio/pci/vfio_pci_private.h create mode 100644 drivers/vfio/pci/vfio_pci_rdwr.c create mode 100644 drivers/vfio/vfio.c create mode 100644 drivers/vfio/vfio_iommu_type1.c create mode 100644 include/linux/vfio.h