[PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-09-30 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Assign SBDF to the PCI devices being passed through with bus 0. The resulting topology is where PCIe devices reside on the bus 0 of the root complex itself (embedded endpoints). This implementation is limited to 32 devices which are allowed on a single PCI bus. Sign

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-09-30 Thread Jan Beulich
On 30.09.2021 09:52, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Assign SBDF to the PCI devices being passed through with bus 0. This reads a little odd: If bus is already known (and I think you imply segment to also be known), it's only DF which get assigned. > The resul

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-09-30 Thread Oleksandr Andrushchenko
On 30.09.21 11:51, Jan Beulich wrote: > On 30.09.2021 09:52, Oleksandr Andrushchenko wrote: >> From: Oleksandr Andrushchenko >> >> Assign SBDF to the PCI devices being passed through with bus 0. > This reads a little odd: If bus is already known (and I think you imply > segment to also be known)

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-09-30 Thread Jan Beulich
On 30.09.2021 11:34, Oleksandr Andrushchenko wrote: > On 30.09.21 11:51, Jan Beulich wrote: >> On 30.09.2021 09:52, Oleksandr Andrushchenko wrote: >>> --- a/xen/drivers/passthrough/pci.c >>> +++ b/xen/drivers/passthrough/pci.c >>> @@ -831,6 +831,66 @@ int pci_remove_device(u16 seg, u8 bus, u8 devfn

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-09-30 Thread Oleksandr Andrushchenko
On 30.09.21 13:23, Jan Beulich wrote: > On 30.09.2021 11:34, Oleksandr Andrushchenko wrote: >> On 30.09.21 11:51, Jan Beulich wrote: >>> On 30.09.2021 09:52, Oleksandr Andrushchenko wrote: --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -831,6 +831,66 @@

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-10-26 Thread Roger Pau Monné
On Thu, Sep 30, 2021 at 10:52:22AM +0300, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > Assign SBDF to the PCI devices being passed through with bus 0. > The resulting topology is where PCIe devices reside on the bus 0 of the > root complex itself (embedded endpoints). > This

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-11-02 Thread Oleksandr Andrushchenko
Hi, Roger On 26.10.21 14:33, Roger Pau Monné wrote: > On Thu, Sep 30, 2021 at 10:52:22AM +0300, Oleksandr Andrushchenko wrote: >> From: Oleksandr Andrushchenko >> >> Assign SBDF to the PCI devices being passed through with bus 0. >> The resulting topology is where PCIe devices reside on the bus 0

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-11-03 Thread Jan Beulich
On 03.11.2021 07:34, Oleksandr Andrushchenko wrote: > Hi, Roger > > On 26.10.21 14:33, Roger Pau Monné wrote: >> On Thu, Sep 30, 2021 at 10:52:22AM +0300, Oleksandr Andrushchenko wrote: >>> From: Oleksandr Andrushchenko >>> >>> Assign SBDF to the PCI devices being passed through with bus 0. >>> T

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-11-03 Thread Roger Pau Monné
On Wed, Nov 03, 2021 at 06:34:16AM +, Oleksandr Andrushchenko wrote: > Hi, Roger > > On 26.10.21 14:33, Roger Pau Monné wrote: > > On Thu, Sep 30, 2021 at 10:52:22AM +0300, Oleksandr Andrushchenko wrote: > >> diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h > >> index 43b8a0817076..3

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-11-03 Thread Oleksandr Andrushchenko
On 03.11.21 10:41, Jan Beulich wrote: > On 03.11.2021 07:34, Oleksandr Andrushchenko wrote: >> Hi, Roger >> >> On 26.10.21 14:33, Roger Pau Monné wrote: >>> On Thu, Sep 30, 2021 at 10:52:22AM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Assign SBDF to the PC

Re: [PATCH v3 10/11] vpci: Add initial support for virtual PCI bus topology

2021-11-03 Thread Oleksandr Andrushchenko
On 03.11.21 10:52, Roger Pau Monné wrote: > On Wed, Nov 03, 2021 at 06:34:16AM +, Oleksandr Andrushchenko wrote: >> Hi, Roger >> >> On 26.10.21 14:33, Roger Pau Monné wrote: >>> On Thu, Sep 30, 2021 at 10:52:22AM +0300, Oleksandr Andrushchenko wrote: diff --git a/xen/include/xen/pci.h b/