Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-30 Thread Alex Williamson
On Tue, 30 Aug 2016 08:20:38 +0300 "Michael S. Tsirkin" wrote: > On Mon, Aug 29, 2016 at 10:53:04PM -0600, Alex Williamson wrote: > > On Mon, 29 Aug 2016 21:52:20 -0600 > > Alex Williamson wrote: > > > > > On Mon, 29 Aug 2016 21:23:25 -0600 > > >

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-30 Thread Alex Williamson
On Tue, 30 Aug 2016 08:20:38 +0300 "Michael S. Tsirkin" wrote: > On Mon, Aug 29, 2016 at 10:53:04PM -0600, Alex Williamson wrote: > > On Mon, 29 Aug 2016 21:52:20 -0600 > > Alex Williamson wrote: > > > > > On Mon, 29 Aug 2016 21:23:25 -0600 > > > Alex Williamson wrote: > > > > > > > On

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-30 Thread kbuild test robot
Hi Michael, [auto build test ERROR on vfio/next] [also build test ERROR on v4.8-rc4 next-20160825] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-30 Thread kbuild test robot
Hi Michael, [auto build test ERROR on vfio/next] [also build test ERROR on v4.8-rc4 next-20160825] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Michael S. Tsirkin
On Mon, Aug 29, 2016 at 10:53:04PM -0600, Alex Williamson wrote: > On Mon, 29 Aug 2016 21:52:20 -0600 > Alex Williamson wrote: > > > On Mon, 29 Aug 2016 21:23:25 -0600 > > Alex Williamson wrote: > > > > > On Tue, 30 Aug 2016 05:27:17

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Michael S. Tsirkin
On Mon, Aug 29, 2016 at 10:53:04PM -0600, Alex Williamson wrote: > On Mon, 29 Aug 2016 21:52:20 -0600 > Alex Williamson wrote: > > > On Mon, 29 Aug 2016 21:23:25 -0600 > > Alex Williamson wrote: > > > > > On Tue, 30 Aug 2016 05:27:17 +0300 > > > "Michael S. Tsirkin" wrote: > > > > > > >

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Alex Williamson
On Mon, 29 Aug 2016 21:52:20 -0600 Alex Williamson wrote: > On Mon, 29 Aug 2016 21:23:25 -0600 > Alex Williamson wrote: > > > On Tue, 30 Aug 2016 05:27:17 +0300 > > "Michael S. Tsirkin" wrote: > > > > > Modern virtio

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Alex Williamson
On Mon, 29 Aug 2016 21:52:20 -0600 Alex Williamson wrote: > On Mon, 29 Aug 2016 21:23:25 -0600 > Alex Williamson wrote: > > > On Tue, 30 Aug 2016 05:27:17 +0300 > > "Michael S. Tsirkin" wrote: > > > > > Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM > > > to signal they are safe

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Michael S. Tsirkin
On Mon, Aug 29, 2016 at 09:52:20PM -0600, Alex Williamson wrote: > On Mon, 29 Aug 2016 21:23:25 -0600 > Alex Williamson wrote: > > > On Tue, 30 Aug 2016 05:27:17 +0300 > > "Michael S. Tsirkin" wrote: > > > > > Modern virtio pci devices can set

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Michael S. Tsirkin
On Mon, Aug 29, 2016 at 09:52:20PM -0600, Alex Williamson wrote: > On Mon, 29 Aug 2016 21:23:25 -0600 > Alex Williamson wrote: > > > On Tue, 30 Aug 2016 05:27:17 +0300 > > "Michael S. Tsirkin" wrote: > > > > > Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM > > > to signal they are

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Alex Williamson
On Mon, 29 Aug 2016 21:23:25 -0600 Alex Williamson wrote: > On Tue, 30 Aug 2016 05:27:17 +0300 > "Michael S. Tsirkin" wrote: > > > Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM > > to signal they are safe to use with an IOMMU. > > > >

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Alex Williamson
On Mon, 29 Aug 2016 21:23:25 -0600 Alex Williamson wrote: > On Tue, 30 Aug 2016 05:27:17 +0300 > "Michael S. Tsirkin" wrote: > > > Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM > > to signal they are safe to use with an IOMMU. > > > > Without this bit, exposing the device to

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Michael S. Tsirkin
On Mon, Aug 29, 2016 at 09:23:25PM -0600, Alex Williamson wrote: > On Tue, 30 Aug 2016 05:27:17 +0300 > "Michael S. Tsirkin" wrote: > > > Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM > > to signal they are safe to use with an IOMMU. > > > > Without this bit,

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Michael S. Tsirkin
On Mon, Aug 29, 2016 at 09:23:25PM -0600, Alex Williamson wrote: > On Tue, 30 Aug 2016 05:27:17 +0300 > "Michael S. Tsirkin" wrote: > > > Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM > > to signal they are safe to use with an IOMMU. > > > > Without this bit, exposing the device to

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Alex Williamson
On Tue, 30 Aug 2016 05:27:17 +0300 "Michael S. Tsirkin" wrote: > Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM > to signal they are safe to use with an IOMMU. > > Without this bit, exposing the device to userspace is unsafe, so probe > and fail VFIO initialization

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Alex Williamson
On Tue, 30 Aug 2016 05:27:17 +0300 "Michael S. Tsirkin" wrote: > Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM > to signal they are safe to use with an IOMMU. > > Without this bit, exposing the device to userspace is unsafe, so probe > and fail VFIO initialization unless noiommu is

[PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Michael S. Tsirkin
Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM to signal they are safe to use with an IOMMU. Without this bit, exposing the device to userspace is unsafe, so probe and fail VFIO initialization unless noiommu is enabled. Signed-off-by: Michael S. Tsirkin ---

[PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-29 Thread Michael S. Tsirkin
Modern virtio pci devices can set VIRTIO_F_IOMMU_PLATFORM to signal they are safe to use with an IOMMU. Without this bit, exposing the device to userspace is unsafe, so probe and fail VFIO initialization unless noiommu is enabled. Signed-off-by: Michael S. Tsirkin ---