From 7ced90832b83f59d853ced79c8424ce34999109b Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 10 Jun 2011 19:08:47 +0200 Subject: [PATCH] dom0: Support for pcidevs in qvm-prefs Can be used to e.g. have two NetVMs, eatch with one network interface assigned. --- dom0/qvm-tools/qvm-prefs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dom0/qvm-tools/qvm-prefs b/dom0/qvm-tools/qvm-prefs index ecc5f4cc..c190cbb0 100755 --- a/dom0/qvm-tools/qvm-prefs +++ b/dom0/qvm-tools/qvm-prefs @@ -40,6 +40,7 @@ def do_list(vm): print fmt.format ("installed by RPM?", vm.installed_by_rpm) print fmt.format ("dir", vm.dir_path) print fmt.format ("config", vm.conf_file) + print fmt.format ("pcidevs", vm.pcidevs) if not vm.is_appvm(): print fmt.format ("root img", vm.root_img) if vm.is_template(): @@ -79,6 +80,12 @@ def set_maxmem(vms, vm, args): vm.maxmem = int(args[0]) +def set_pcidevs(vms, vm, args): + if len (args) != 1: + print "Missing memory argument!" + + vm.pcidevs = args[0] + def set_netvm(vms, vm, args): if len (args) != 1: print "Missing netvm name argument!" @@ -164,6 +171,7 @@ def set_nonupdateable(vms, vm, args): properties = { "updateable": set_updateable, "nonupdateable": set_nonupdateable, + "pcidevs": set_pcidevs, "label" : set_label, "netvm" : set_netvm, "maxmem" : set_maxmem,