diff options
author | Gianni Tedesco <gianni.tedesco@citrix.com> | 2010-07-29 18:52:33 +0100 |
---|---|---|
committer | Gianni Tedesco <gianni.tedesco@citrix.com> | 2010-07-29 18:52:33 +0100 |
commit | 9becdd8ee96e8d2572b72a9b9c67a6e5c708971d (patch) | |
tree | 5e57f6f04d507e0bfd85ea60f5d4fca96c027e16 /tools/libxl/xl_cmdtable.c | |
parent | a1d3c13679e97658c98d46c030bb9e2e3bd55e66 (diff) | |
download | xen-9becdd8ee96e8d2572b72a9b9c67a6e5c708971d.tar.gz xen-9becdd8ee96e8d2572b72a9b9c67a6e5c708971d.tar.bz2 xen-9becdd8ee96e8d2572b72a9b9c67a6e5c708971d.zip |
libxl: Check whether a PCI device is assignable before assigning it do a domU
Implement a new libxl function libxl_device_pci_list_assignable. This is
used to implement the xl list-assignable-pci-devices command and part of
the implementation is used to make sure that PCI devices are not multiply
assigned to one or more domU's before doing the passthrough assignment.
The function libxl_device_pci_list changes to libxl_device_pci_list_assigned
due to a parameter change for consistency with pci_list_assignable.
Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl_cmdtable.c')
-rw-r--r-- | tools/libxl/xl_cmdtable.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c index b7065bb60c..b08798c1f8 100644 --- a/tools/libxl/xl_cmdtable.c +++ b/tools/libxl/xl_cmdtable.c @@ -69,6 +69,11 @@ struct cmd_spec cmd_table[] = { "List pass-through pci devices for a domain", "<Domain>", }, + { "pci-list-assignable-devices", + &main_pcilist_assignable, + "List all the assignable pci devices", + "", + }, { "pause", &main_pause, "Pause execution of a domain", |