mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
qemu: Don't try to allocate PCI addresses for ARM
This commit is contained in:
parent
3a2beaee1d
commit
68e5e93e4e
@ -1773,6 +1773,16 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static bool
|
||||
qemuDomainSupportsPCI(virDomainDefPtr def) {
|
||||
if (def->os.arch != VIR_ARCH_ARMV7L)
|
||||
return true;
|
||||
|
||||
if (STREQ(def->os.machine, "versatilepb"))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
int
|
||||
qemuDomainAssignPCIAddresses(virDomainDefPtr def,
|
||||
@ -1838,8 +1848,10 @@ qemuDomainAssignPCIAddresses(virDomainDefPtr def,
|
||||
if (!(addrs = qemuDomainPCIAddressSetCreate(def, nbuses, false)))
|
||||
goto cleanup;
|
||||
|
||||
if (qemuAssignDevicePCISlots(def, qemuCaps, addrs) < 0)
|
||||
goto cleanup;
|
||||
if (qemuDomainSupportsPCI(def)) {
|
||||
if (qemuAssignDevicePCISlots(def, qemuCaps, addrs) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
if (obj && obj->privateData) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user