xl: support naming of assignable devices
authorPaul Durrant <pdurrant@amazon.com>
Tue, 8 Dec 2020 19:30:31 +0000 (19:30 +0000)
committerWei Liu <wl@xen.org>
Tue, 15 Dec 2020 16:24:30 +0000 (16:24 +0000)
commit93c16ae47baf7e92477c34d434719bfed3ccad84
tree691f8e5905dbc237abd27c444315062950d65e79
parent5ab684cb3e4d078f246e6fa2d8bc445959b6820e
xl: support naming of assignable devices

This patch converts libxl to use libxl_pci_bdf_assignable_add/remove/list/
list_free() rather than libxl_device_pci_assignable_add/remove/list/
list_free(), which then allows naming of assignable devices to be supported.

With this patch applied 'xl pci-assignable-add' will take an optional '--name'
parameter, 'xl pci-assignable-remove' can be passed either a BDF or a name and
'xl pci-assignable-list' will take a optional '--show-names' flag which
determines whether names are displayed in its output.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Wei Liu <wl@xen.org>
tools/xl/xl_cmdtable.c
tools/xl/xl_pci.c