Re: [PATCH kernel] vfio_pci: Make extended capabilities test more robust

2016-04-28 Thread Alex Williamson
On Thu, 28 Apr 2016 21:04:52 +1000 Alexey Kardashevskiy wrote: > VFIO reads a dword beyond the standard PCI config space (256 bytes) to > know if there are extended config space (4096 bytes). It relies on > the platform to return zero if there is no extended space. > > However

Re: [PATCH kernel] vfio_pci: Make extended capabilities test more robust

2016-04-28 Thread Alex Williamson
On Thu, 28 Apr 2016 21:04:52 +1000 Alexey Kardashevskiy wrote: > VFIO reads a dword beyond the standard PCI config space (256 bytes) to > know if there are extended config space (4096 bytes). It relies on > the platform to return zero if there is no extended space. > > However at least on

[PATCH kernel] vfio_pci: Make extended capabilities test more robust

2016-04-28 Thread Alexey Kardashevskiy
VFIO reads a dword beyond the standard PCI config space (256 bytes) to know if there are extended config space (4096 bytes). It relies on the platform to return zero if there is no extended space. However at least on PPC64/POWERNV platform, the system firmware (OPAL) returns 0x in this

[PATCH kernel] vfio_pci: Make extended capabilities test more robust

2016-04-28 Thread Alexey Kardashevskiy
VFIO reads a dword beyond the standard PCI config space (256 bytes) to know if there are extended config space (4096 bytes). It relies on the platform to return zero if there is no extended space. However at least on PPC64/POWERNV platform, the system firmware (OPAL) returns 0x in this