mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-16 03:24:31 +03:00
aarch64: Support versioned machine types.
For distros that want to add versioned machine types, they will add (downstream) machine types like "virt-foo-1.2.3". Detect these as MMIO too. Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
This commit is contained in:
parent
b7e6f2fc80
commit
ee4c13ce1d
@ -1158,7 +1158,8 @@ qemuDomainAssignARMVirtioMMIOAddresses(virDomainDefPtr def,
|
||||
if (((def->os.arch == VIR_ARCH_ARMV7L) ||
|
||||
(def->os.arch == VIR_ARCH_AARCH64)) &&
|
||||
(STRPREFIX(def->os.machine, "vexpress-") ||
|
||||
STREQ(def->os.machine, "virt")) &&
|
||||
STREQ(def->os.machine, "virt") ||
|
||||
STRPREFIX(def->os.machine, "virt-")) &&
|
||||
virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_MMIO)) {
|
||||
qemuDomainPrimeVirtioDeviceAddresses(
|
||||
def, VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user