From 1dd0744b29e6249d3c7ac31ca45e2ec6a0802e5b Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 26 Feb 2024 15:45:41 +0100 Subject: [PATCH] qemuDomainDefAddDefaultDevices: Handle defaults for all ARM arches together MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/qemu/qemu_domain.c | 8 ++++---- ...ch64-versatilepb-minimal.aarch64-latest.abi-update.xml | 1 + .../aarch64-versatilepb-minimal.aarch64-latest.xml | 1 + ...rmv7l-versatilepb-minimal.armv7l-latest.abi-update.xml | 1 + .../armv7l-versatilepb-minimal.armv7l-latest.xml | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) 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 +