[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v1 3/6] vpci: rename and export vpci_bar_add_rangeset
On Fri, Jul 25, 2025 at 02:24:32PM +0000, Mykyta Poturai wrote: > Export functions required for SR-IOV support. > > Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx> > --- > xen/drivers/vpci/header.c | 8 ++++---- > xen/include/xen/vpci.h | 2 ++ > 2 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/xen/drivers/vpci/header.c b/xen/drivers/vpci/header.c > index f33fb27bde..f947f652cd 100644 > --- a/xen/drivers/vpci/header.c > +++ b/xen/drivers/vpci/header.c > @@ -733,8 +733,8 @@ static void cf_check rom_write( > } > } > > -static int bar_add_rangeset(const struct pci_dev *pdev, struct vpci_bar *bar, > - unsigned int i) > +int vpci_bar_add_rangeset(const struct pci_dev *pdev, struct vpci_bar *bar, > + unsigned int i) Inline from my reply on the BAR register write series, it might be less wasteful to allocate the ranges per-vCPU rather than per-device. The only purpose of those rangesets is for BAR mapping, and such mapping is performed exclusively for each device on a single vCPU. With that there's probably no need to export this function, as it will no longer exist. Thanks, Roger.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |