diff options
author | George Dunlap <george.dunlap@eu.citrix.com> | 2012-05-15 16:28:16 +0100 |
---|---|---|
committer | George Dunlap <george.dunlap@eu.citrix.com> | 2012-05-15 16:28:16 +0100 |
commit | 6596e73b77afdf1daac9dfa78dfba42ed698c92c (patch) | |
tree | de16101bba0d7c64fad06a267d1224c329b85fe1 /tools/libxl/xl_cmdtable.c | |
parent | 039a5e5322fcf5cdcff2315db11cdd46919db534 (diff) | |
download | xen-6596e73b77afdf1daac9dfa78dfba42ed698c92c.tar.gz xen-6596e73b77afdf1daac9dfa78dfba42ed698c92c.tar.bz2 xen-6596e73b77afdf1daac9dfa78dfba42ed698c92c.zip |
xl: Add pci_assignable_add and remove commands
pci-assignable-add will always store the driver rebind path, but
pci-assignable-remove will only actually rebind if asked to do so.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/xl_cmdtable.c')
-rw-r--r-- | tools/libxl/xl_cmdtable.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c index 193d6a3a46..896b3990a6 100644 --- a/tools/libxl/xl_cmdtable.c +++ b/tools/libxl/xl_cmdtable.c @@ -89,6 +89,20 @@ struct cmd_spec cmd_table[] = { "List pass-through pci devices for a domain", "<Domain>", }, + { "pci-assignable-add", + &main_pciassignable_add, 0, 1, + "Make a device assignable for pci-passthru", + "<BDF>", + "-h Print this help.\n" + }, + { "pci-assignable-remove", + &main_pciassignable_remove, 0, 1, + "Remove a device from being assignable", + "[options] <BDF>", + "-h Print this help.\n" + "-r Attempt to re-assign the device to the\n" + " original driver" + }, { "pci-assignable-list", &main_pciassignable_list, 0, 0, "List all the assignable pci devices", |