dom0: Support for pcidevs in qvm-prefs

Can be used to e.g. have two NetVMs, eatch with one network interface assigned.
This commit is contained in:
Marek Marczykowski 2011-06-10 19:08:47 +02:00
parent 4cb5838f5b
commit 7ced90832b

View File

@ -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,