dom0/qvm-pci: add info about required restart after PCI device add/remove

This commit is contained in:
Marek Marczykowski 2012-05-03 03:54:05 +02:00
parent 2798e83f64
commit a5c80d4015

View File

@ -73,6 +73,8 @@ def main():
exit(1)
if vm.pcidevs.count(pci) == 0:
vm.pcidevs.append(pci)
if vm.is_running():
print >>sys.stderr, "NOTICE: Changes will be seen by VM after VM restart"
qvm_collection.save()
qvm_collection.unlock_db()
@ -84,6 +86,8 @@ def main():
pci = args[1]
if vm.pcidevs.count(pci) > 0:
vm.pcidevs.remove(pci)
if vm.is_running():
print >>sys.stderr, "NOTICE: Changes will be seen by VM after VM restart"
qvm_collection.save()
qvm_collection.unlock_db()