Use pci_addr=auto with QEMU's pci_add monitor command

Newer versions of QEMU accept 'pci_add auto', but older versions require
'pci_add pci_addr=auto'

* src/qemu_driver.c: use pci_addr= in qemudDomainAttachHostPciDevice()
  for older versions of QEMU
This commit is contained in:
Mark McLoughlin 2009-08-17 15:05:23 +01:00
parent 457e050628
commit 60ff07585c

View File

@ -5333,7 +5333,7 @@ static int qemudDomainAttachHostPciDevice(virConnectPtr conn,
pciFreeDevice(conn, pci);
if (virAsprintf(&cmd, "pci_add auto host host=%.2x:%.2x.%.1x",
if (virAsprintf(&cmd, "pci_add pci_addr=auto host host=%.2x:%.2x.%.1x",
hostdev->source.subsys.u.pci.bus,
hostdev->source.subsys.u.pci.slot,
hostdev->source.subsys.u.pci.function) < 0) {