提交 72652e9d 编写于 作者: D Daniel P. Berrange

Always reset PCI devices

上级 644b41a9
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>
* src/libvirt_private.syms: Export virUnrefConnect and
......
......@@ -1411,7 +1411,11 @@ int qemudBuildCommandLine(virConnectPtr conn,
}
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];
pciDevice *dev;
if (!hostdev->managed ||
hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS ||
if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS ||
hostdev->source.subsys.type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI)
continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册