[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v5 13/23] libxl: use COMPARE_PCI() macro is_pci_in_array()...
On Thu, Dec 03, 2020 at 02:25:24PM +0000, Paul Durrant wrote: > From: Paul Durrant <pdurrant@xxxxxxxxxx> > > ... rather than an open-coded equivalent. > > This patch tidies up the is_pci_in_array() function, making it take a single > 'libxl_device_pci' argument rather than separate domain, bus, device and > function arguments. The already-available COMPARE_PCI() macro can then be > used and it is also modified to return 'bool' rather than 'int'. > > The patch also modifies libxl_pci_assignable() to use is_pci_in_array() rather > than a separate open-coded equivalent, and also modifies it to return a > 'bool' rather than an 'int'. > > NOTE: The COMPARE_PCI() macro is also fixed to include the 'domain' in its > comparison, which should always have been the case. > > Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx> > Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx> Acked-by: Wei Liu <wl@xxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |