From: Peter Krempa Date: Mon, 26 Feb 2024 14:45:41 +0000 (+0100) Subject: qemuDomainDefAddDefaultDevices: Handle defaults for all ARM arches together X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1dd0744b29e6249d3c7ac31ca45e2ec6a0802e5b;p=libvirt.git qemuDomainDefAddDefaultDevices: Handle defaults for all ARM arches together Most machine types are avaliable in all arches by qemu. This is also true for the 'versatilepb' machine type example in the tests. Move all the ARM architectures together so that they are handled in sync. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko Reviewed-by: Andrea Bolognani --- diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index d7be544710..8ff7b3a5aa 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4189,14 +4189,15 @@ qemuDomainDefAddDefaultDevices(virQEMUDriver *driver, break; case VIR_ARCH_ARMV6L: + case VIR_ARCH_ARMV7L: + case VIR_ARCH_ARMV7B: + case VIR_ARCH_AARCH64: if (STREQ(def->os.machine, "versatilepb")) addPCIRoot = true; - break; - case VIR_ARCH_ARMV7L: - case VIR_ARCH_AARCH64: if (qemuDomainIsARMVirt(def)) addPCIeRoot = true; + break; case VIR_ARCH_PPC64: @@ -4253,7 +4254,6 @@ qemuDomainDefAddDefaultDevices(virQEMUDriver *driver, addPCIRoot = true; break; - case VIR_ARCH_ARMV7B: case VIR_ARCH_CRIS: case VIR_ARCH_ITANIUM: case VIR_ARCH_LM32: diff --git a/tests/qemuxmlconfdata/aarch64-versatilepb-minimal.aarch64-latest.abi-update.xml b/tests/qemuxmlconfdata/aarch64-versatilepb-minimal.aarch64-latest.abi-update.xml index 0c89217409..2b5feaa665 100644 --- a/tests/qemuxmlconfdata/aarch64-versatilepb-minimal.aarch64-latest.abi-update.xml +++ b/tests/qemuxmlconfdata/aarch64-versatilepb-minimal.aarch64-latest.abi-update.xml @@ -15,6 +15,7 @@ destroy /usr/bin/qemu-system-aarch64 + diff --git a/tests/qemuxmlconfdata/aarch64-versatilepb-minimal.aarch64-latest.xml b/tests/qemuxmlconfdata/aarch64-versatilepb-minimal.aarch64-latest.xml index 0c89217409..2b5feaa665 100644 --- a/tests/qemuxmlconfdata/aarch64-versatilepb-minimal.aarch64-latest.xml +++ b/tests/qemuxmlconfdata/aarch64-versatilepb-minimal.aarch64-latest.xml @@ -15,6 +15,7 @@ destroy /usr/bin/qemu-system-aarch64 + diff --git a/tests/qemuxmlconfdata/armv7l-versatilepb-minimal.armv7l-latest.abi-update.xml b/tests/qemuxmlconfdata/armv7l-versatilepb-minimal.armv7l-latest.abi-update.xml index b2a8d254d6..2c15244cc4 100644 --- a/tests/qemuxmlconfdata/armv7l-versatilepb-minimal.armv7l-latest.abi-update.xml +++ b/tests/qemuxmlconfdata/armv7l-versatilepb-minimal.armv7l-latest.abi-update.xml @@ -17,6 +17,7 @@ destroy /usr/bin/qemu-system-armv7l + diff --git a/tests/qemuxmlconfdata/armv7l-versatilepb-minimal.armv7l-latest.xml b/tests/qemuxmlconfdata/armv7l-versatilepb-minimal.armv7l-latest.xml index b2a8d254d6..2c15244cc4 100644 --- a/tests/qemuxmlconfdata/armv7l-versatilepb-minimal.armv7l-latest.xml +++ b/tests/qemuxmlconfdata/armv7l-versatilepb-minimal.armv7l-latest.xml @@ -17,6 +17,7 @@ destroy /usr/bin/qemu-system-armv7l +