Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-17 Thread David Gibson
On Fri, Dec 15, 2017 at 09:04:28AM -0700, Alex Williamson wrote: > On Fri, 15 Dec 2017 15:07:31 +1100 > David Gibson wrote: > > > On Tue, Dec 12, 2017 at 04:21:31PM +1100, Alexey Kardashevskiy wrote: > > > This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability > > > which tells tha

Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-15 Thread Alex Williamson
On Fri, 15 Dec 2017 15:07:31 +1100 David Gibson wrote: > On Tue, Dec 12, 2017 at 04:21:31PM +1100, Alexey Kardashevskiy wrote: > > This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability > > which tells that a region with MSIX data can be mapped entirely, i.e. > > the VFIO PCI drive

Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-14 Thread David Gibson
On Tue, Dec 12, 2017 at 09:05:25AM -0700, Alex Williamson wrote: > On Tue, 12 Dec 2017 18:01:40 +1100 > Alexey Kardashevskiy wrote: > > > On 12/12/17 17:06, Alexey Kardashevskiy wrote: > > > On 12/12/17 16:54, Alex Williamson wrote: > > >> On Tue, 12 Dec 2017 16:21:31 +1100 > > >> Alexey Kardas

Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-14 Thread David Gibson
On Tue, Dec 12, 2017 at 04:21:31PM +1100, Alexey Kardashevskiy wrote: > This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability > which tells that a region with MSIX data can be mapped entirely, i.e. > the VFIO PCI driver won't prevent MSIX vectors area from being mapped. > > This ad

Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-12 Thread Alex Williamson
On Tue, 12 Dec 2017 18:01:40 +1100 Alexey Kardashevskiy wrote: > On 12/12/17 17:06, Alexey Kardashevskiy wrote: > > On 12/12/17 16:54, Alex Williamson wrote: > >> On Tue, 12 Dec 2017 16:21:31 +1100 > >> Alexey Kardashevskiy wrote: > >> > >>> This makes use of a new VFIO_REGION_INFO_CAP_MSIX_

Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-11 Thread Alexey Kardashevskiy
On 12/12/17 17:06, Alexey Kardashevskiy wrote: > On 12/12/17 16:54, Alex Williamson wrote: >> On Tue, 12 Dec 2017 16:21:31 +1100 >> Alexey Kardashevskiy wrote: >> >>> This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability >>> which tells that a region with MSIX data can be mapped en

Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-11 Thread Alexey Kardashevskiy
On 12/12/17 16:54, Alex Williamson wrote: > On Tue, 12 Dec 2017 16:21:31 +1100 > Alexey Kardashevskiy wrote: > >> This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability >> which tells that a region with MSIX data can be mapped entirely, i.e. >> the VFIO PCI driver won't prevent MSI

Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-11 Thread Alex Williamson
On Tue, 12 Dec 2017 16:21:31 +1100 Alexey Kardashevskiy wrote: > This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability > which tells that a region with MSIX data can be mapped entirely, i.e. > the VFIO PCI driver won't prevent MSIX vectors area from being mapped. > > This adds a

Re: [Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-11 Thread Alexey Kardashevskiy
On 12/12/17 16:21, Alexey Kardashevskiy wrote: > This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability > which tells that a region with MSIX data can be mapped entirely, i.e. > the VFIO PCI driver won't prevent MSIX vectors area from being mapped. > > This adds a "msix-no-mmap" pro

[Qemu-devel] [PATCH qemu] RFC: vfio-pci: Allow mmap of MSIX BAR

2017-12-11 Thread Alexey Kardashevskiy
This makes use of a new VFIO_REGION_INFO_CAP_MSIX_MAPPABLE capability which tells that a region with MSIX data can be mapped entirely, i.e. the VFIO PCI driver won't prevent MSIX vectors area from being mapped. This adds a "msix-no-mmap" property to the vfio-pci device, it is "true" by default and