mirror of https://gitee.com/openkylin/libvirt.git
Removed unneeded check
Since test suite now correctly creates capabilities cache, the hack is not needed any more. Signed-off-by: Pavel Fedin <p.fedin@samsung.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0636c4a8f6
commit
e2863e7768
|
@ -1040,10 +1040,7 @@ qemuDomainDefPostParse(virDomainDefPtr def,
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
||||||
/* This condition is actually a (temporary) hack for test suite which
|
qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator);
|
||||||
* does not create capabilities cache */
|
|
||||||
if (driver && driver->qemuCapsCache)
|
|
||||||
qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator);
|
|
||||||
|
|
||||||
/* Add implicit PCI root controller if the machine has one */
|
/* Add implicit PCI root controller if the machine has one */
|
||||||
switch (def->os.arch) {
|
switch (def->os.arch) {
|
||||||
|
@ -1242,10 +1239,7 @@ qemuDomainDeviceDefPostParse(virDomainDeviceDefPtr dev,
|
||||||
if (driver)
|
if (driver)
|
||||||
cfg = virQEMUDriverGetConfig(driver);
|
cfg = virQEMUDriverGetConfig(driver);
|
||||||
|
|
||||||
/* This condition is actually a (temporary) hack for test suite which
|
qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator);
|
||||||
* does not create capabilities cache */
|
|
||||||
if (driver && driver->qemuCapsCache)
|
|
||||||
qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator);
|
|
||||||
|
|
||||||
if (dev->type == VIR_DOMAIN_DEVICE_NET &&
|
if (dev->type == VIR_DOMAIN_DEVICE_NET &&
|
||||||
dev->data.net->type != VIR_DOMAIN_NET_TYPE_HOSTDEV &&
|
dev->data.net->type != VIR_DOMAIN_NET_TYPE_HOSTDEV &&
|
||||||
|
|
Loading…
Reference in New Issue