mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
Revert "Fix libvirtd restart for domains with PCI passthrough devices"
This reverts commit cdc42d0a48
.
As DanB pointed out, this patch is actually wrong. The real
bug that was causing me to see this problem is a bug
introduced in a RHEL-5 libvirt snapshot, and I'm going to
fix the real bug there.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
7cc5410bfd
commit
9757e10d6d
@ -2876,7 +2876,7 @@ static int
|
||||
virDomainHostdevSubsysPciDefParseXML(virConnectPtr conn,
|
||||
const xmlNodePtr node,
|
||||
virDomainHostdevDefPtr def,
|
||||
int flags ATTRIBUTE_UNUSED) {
|
||||
int flags) {
|
||||
|
||||
int ret = -1;
|
||||
xmlNodePtr cur;
|
||||
@ -2890,7 +2890,8 @@ virDomainHostdevSubsysPciDefParseXML(virConnectPtr conn,
|
||||
|
||||
if (virDomainDevicePCIAddressParseXML(conn, cur, addr) < 0)
|
||||
goto out;
|
||||
} else if (xmlStrEqual(cur->name, BAD_CAST "state")) {
|
||||
} else if ((flags & VIR_DOMAIN_XML_INTERNAL_STATUS) &&
|
||||
xmlStrEqual(cur->name, BAD_CAST "state")) {
|
||||
/* Legacy back-compat. Don't add any more attributes here */
|
||||
char *devaddr = virXMLPropString(cur, "devaddr");
|
||||
if (devaddr &&
|
||||
|
Loading…
Reference in New Issue
Block a user