libxl: introduce libxl_pci_bdf_assignable_add/remove/list/list_free(), ...
authorPaul Durrant <pdurrant@amazon.com>
Tue, 8 Dec 2020 19:30:30 +0000 (19:30 +0000)
committerWei Liu <wl@xen.org>
Tue, 15 Dec 2020 16:24:26 +0000 (16:24 +0000)
commit5ab684cb3e4d078f246e6fa2d8bc445959b6820e
tree23e1e516a2c31f10fbd661969801d24aa63f9670
parent66c2fbc6e82b1aa7b9f0fb37eecf93983c348058
libxl: introduce libxl_pci_bdf_assignable_add/remove/list/list_free(), ...

which support naming and use 'libxl_pci_bdf' rather than 'libxl_device_pci',
as replacements for libxl_device_pci_assignable_add/remove/list/list_free().

libxl_pci_bdf_assignable_add() takes a 'name' parameter which is stored in
xenstore and facilitates two addtional functions added by this patch:
libxl_pci_bdf_assignable_name2bdf() and libxl_pci_bdf_assignable_bdf2name().
Currently there are no callers of these two functions. They will be added in
a subsequent patch.

libxl_device_pci_assignable_add/remove/list/list_free() are left in place
for compatibility but are re-implemented in terms of the newly introduced
functions.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Wei Liu <wl@xen.org>
tools/include/libxl.h
tools/libs/light/libxl_pci.c