]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add persistence of PCI addresses to QEMU
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Feb 2010 16:19:34 +0000 (16:19 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Feb 2010 17:25:52 +0000 (17:25 +0000)
commit141dea6bc7222107c2357acb68066baea5b26df3
tree42541ba227053b85ac005af132ecf202a0ef47ff
parent658341189beed7ef87974bbd4fd8d2b49d9b22b9
Add persistence of PCI addresses to QEMU

Current PCI addresses are allocated at time of VM startup.
To make them truely persistent, it is neccessary to do this
at time of virDomainDefine/virDomainCreate. The code in
qemuStartVMDaemon still remains in order to cope with upgrades
from older libvirt releases

* src/qemu/qemu_driver.c: Rename existing qemuAssignPCIAddresses
  to qemuDetectPCIAddresses. Add new qemuAssignPCIAddresses which
  does auto-allocation upfront. Call qemuAssignPCIAddresses from
  qemuDomainDefine and qemuDomainCreate to assign PCI addresses that
  can then be persisted. Don't clear PCI addresses at shutdown if
  they are intended to be persistent
src/qemu/qemu_driver.c