[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v5 02/23] libxl: make libxl__device_list() work correctly for LIBXL__DEVICE_KIND_PCI...
On Thu, Dec 03, 2020 at 02:25:13PM +0000, Paul Durrant wrote: > From: Paul Durrant <pdurrant@xxxxxxxxxx> > > ... devices. > > Currently there is an assumption built into libxl__device_list() that device > backends are fully enumarated under the '/libxl' path in xenstore. This is > not the case for PCI backend devices, which are only properly enumerated > under '/local/domain/0/backend'. > > This patch adds a new get_path() method to libxl__device_type to allow a > backend implementation (such as PCI) to specify the xenstore path where > devices are enumerated and modifies libxl__device_list() to use this method > if it is available. Also, if the get_num() method is defined then the > from_xenstore() method expects to be passed the backend path without the > device > number concatenated, so this issue is also rectified. > > Having made libxl__device_list() work correctly, this patch removes the > open-coded libxl_pci_device_pci_list() in favour of an evaluation of the > LIBXL_DEFINE_DEVICE_LIST() macro. This has the side-effect of also defining > libxl_pci_device_pci_list_free() which will be used in subsequent patches. > > 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 |