Re: [PATCH] PCI: Fix and amend express capability sizes

2017-08-22 Thread Alex Williamson
On Tue, 22 Aug 2017 16:05:01 -0500 Bjorn Helgaas wrote: > On Thu, Aug 10, 2017 at 10:54:31AM -0600, Alex Williamson wrote: > > PCI_CAP_EXP_ENDPOINT_SIZEOF_V1 defines the size of the PCIe express > > capability structure for v1 devices with link, but we also have a need > > in

Re: [PATCH] PCI: Fix and amend express capability sizes

2017-08-22 Thread Alex Williamson
On Tue, 22 Aug 2017 16:05:01 -0500 Bjorn Helgaas wrote: > On Thu, Aug 10, 2017 at 10:54:31AM -0600, Alex Williamson wrote: > > PCI_CAP_EXP_ENDPOINT_SIZEOF_V1 defines the size of the PCIe express > > capability structure for v1 devices with link, but we also have a need > > in the vfio code for

Re: [PATCH] PCI: Fix and amend express capability sizes

2017-08-22 Thread Bjorn Helgaas
On Thu, Aug 10, 2017 at 10:54:31AM -0600, Alex Williamson wrote: > PCI_CAP_EXP_ENDPOINT_SIZEOF_V1 defines the size of the PCIe express > capability structure for v1 devices with link, but we also have a need > in the vfio code for sizing the capability for devices without link, > such as root

Re: [PATCH] PCI: Fix and amend express capability sizes

2017-08-22 Thread Bjorn Helgaas
On Thu, Aug 10, 2017 at 10:54:31AM -0600, Alex Williamson wrote: > PCI_CAP_EXP_ENDPOINT_SIZEOF_V1 defines the size of the PCIe express > capability structure for v1 devices with link, but we also have a need > in the vfio code for sizing the capability for devices without link, > such as root

Re: [PATCH] PCI: Fix and amend express capability sizes

2017-08-21 Thread Auger Eric
Hi Alex, On 10/08/2017 18:54, Alex Williamson wrote: > PCI_CAP_EXP_ENDPOINT_SIZEOF_V1 defines the size of the PCIe express > capability structure for v1 devices with link, but we also have a need > in the vfio code for sizing the capability for devices without link, > such as root complex

Re: [PATCH] PCI: Fix and amend express capability sizes

2017-08-21 Thread Auger Eric
Hi Alex, On 10/08/2017 18:54, Alex Williamson wrote: > PCI_CAP_EXP_ENDPOINT_SIZEOF_V1 defines the size of the PCIe express > capability structure for v1 devices with link, but we also have a need > in the vfio code for sizing the capability for devices without link, > such as root complex

[PATCH] PCI: Fix and amend express capability sizes

2017-08-10 Thread Alex Williamson
PCI_CAP_EXP_ENDPOINT_SIZEOF_V1 defines the size of the PCIe express capability structure for v1 devices with link, but we also have a need in the vfio code for sizing the capability for devices without link, such as root complex endpoints. Create a separate define for this ending the structure

[PATCH] PCI: Fix and amend express capability sizes

2017-08-10 Thread Alex Williamson
PCI_CAP_EXP_ENDPOINT_SIZEOF_V1 defines the size of the PCIe express capability structure for v1 devices with link, but we also have a need in the vfio code for sizing the capability for devices without link, such as root complex endpoints. Create a separate define for this ending the structure