mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemu: use qemuDomainMachineIsI440FX() in appropriate place
This patch makes qemuValideDevicePCISlotsChipsets() more consistent in appearance by replacing several clauses of an if with the equivalent call to qemuDomainMachineIsI440FX. The if was checking exactly the same items, just in a slightly different order.
This commit is contained in:
parent
97e70a5935
commit
da558e72c4
@ -2110,11 +2110,7 @@ qemuValidateDevicePCISlotsChipsets(virDomainDefPtr def,
|
|||||||
virQEMUCapsPtr qemuCaps,
|
virQEMUCapsPtr qemuCaps,
|
||||||
virDomainPCIAddressSetPtr addrs)
|
virDomainPCIAddressSetPtr addrs)
|
||||||
{
|
{
|
||||||
if ((STRPREFIX(def->os.machine, "pc-0.") ||
|
if (qemuDomainMachineIsI440FX(def) &&
|
||||||
STRPREFIX(def->os.machine, "pc-1.") ||
|
|
||||||
STRPREFIX(def->os.machine, "pc-i440") ||
|
|
||||||
STREQ(def->os.machine, "pc") ||
|
|
||||||
STRPREFIX(def->os.machine, "rhel")) &&
|
|
||||||
qemuValidateDevicePCISlotsPIIX3(def, qemuCaps, addrs) < 0) {
|
qemuValidateDevicePCISlotsPIIX3(def, qemuCaps, addrs) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user