Re: [Xen-devel] [PATCH v11 04/12] pci: split code to size BARs from pci_add_device

2018-03-22 Thread Jan Beulich
>>> On 22.03.18 at 11:31, wrote: > On Thu, Mar 22, 2018 at 04:15:06AM -0600, Jan Beulich wrote: >> >>> On 20.03.18 at 16:15, wrote: >> > @@ -672,11 +722,16 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn, >> > unsigned int i; >> > >> > BUILD_BUG_ON(ARRAY_SIZE(pdev->vf_

Re: [Xen-devel] [PATCH v11 04/12] pci: split code to size BARs from pci_add_device

2018-03-22 Thread Roger Pau Monné
On Thu, Mar 22, 2018 at 04:15:06AM -0600, Jan Beulich wrote: > >>> On 20.03.18 at 16:15, wrote: > > @@ -672,11 +722,16 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn, > > unsigned int i; > > > > BUILD_BUG_ON(ARRAY_SIZE(pdev->vf_rlen) != PCI_SRIOV_NUM_BARS); > > -

Re: [Xen-devel] [PATCH v11 04/12] pci: split code to size BARs from pci_add_device

2018-03-22 Thread Jan Beulich
>>> On 20.03.18 at 16:15, wrote: > @@ -672,11 +722,16 @@ int pci_add_device(u16 seg, u8 bus, u8 devfn, > unsigned int i; > > BUILD_BUG_ON(ARRAY_SIZE(pdev->vf_rlen) != PCI_SRIOV_NUM_BARS); > -for ( i = 0; i < PCI_SRIOV_NUM_BARS; ++i ) > +for ( i =

[Xen-devel] [PATCH v11 04/12] pci: split code to size BARs from pci_add_device

2018-03-20 Thread Roger Pau Monne
So that it can be called from outside in order to get the size of regular PCI BARs. This will be required in order to map the BARs from PCI devices into PVH Dom0 p2m. Signed-off-by: Roger Pau Monné Reviewed-by: Jan Beulich --- Cc: Jan Beulich Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackso