mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Always reset PCI devices
This commit is contained in:
parent
644b41a94d
commit
72652e9dbb
@ -1,3 +1,8 @@
|
|||||||
|
Mon Mar 2 20:21:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/qemu_conf.c: Always reset PCI devices before starting guests.
|
||||||
|
Add todo item for non-managed PCI devs
|
||||||
|
|
||||||
Mon Mar 2 20:18:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
Mon Mar 2 20:18:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/libvirt_private.syms: Export virUnrefConnect and
|
* src/libvirt_private.syms: Export virUnrefConnect and
|
||||||
|
@ -1411,7 +1411,11 @@ int qemudBuildCommandLine(virConnectPtr conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
pciFreeDevice(conn, dev);
|
pciFreeDevice(conn, dev);
|
||||||
}
|
} /* else {
|
||||||
|
XXX validate that non-managed device isn't in use, eg
|
||||||
|
by checking that device is either un-bound, or bound
|
||||||
|
to pci-stub.ko
|
||||||
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1421,8 +1425,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
|
|||||||
virDomainHostdevDefPtr hostdev = vm->def->hostdevs[i];
|
virDomainHostdevDefPtr hostdev = vm->def->hostdevs[i];
|
||||||
pciDevice *dev;
|
pciDevice *dev;
|
||||||
|
|
||||||
if (!hostdev->managed ||
|
if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS ||
|
||||||
hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS ||
|
|
||||||
hostdev->source.subsys.type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI)
|
hostdev->source.subsys.type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user