From 5d8648b1ba2cc9efaa21ef5586aba33ab54d4463 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 22 Feb 2024 14:35:51 +0100 Subject: [PATCH] testutilshostcpus: Add support for VIR_ARCH_ARMV7L MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow using armv7l arch in a capability dump. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko Reviewed-by: Andrea Bolognani --- tests/testutilshostcpus.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/testutilshostcpus.h b/tests/testutilshostcpus.h index 797f0bbfc6..3359de13a6 100644 --- a/tests/testutilshostcpus.h +++ b/tests/testutilshostcpus.h @@ -131,6 +131,14 @@ static virCPUDef cpuAarch64Data = { .threads = 1, }; +static virCPUDef cpuArmV7lData = { + .type = VIR_CPU_TYPE_HOST, + .arch = VIR_ARCH_ARMV7L, + .sockets = 1, + .cores = 1, + .threads = 1, +}; + static virCPUDef cpuS390Data = { .type = VIR_CPU_TYPE_HOST, .arch = VIR_ARCH_S390X, @@ -196,6 +204,8 @@ testUtilsHostCpusGetDefForArch(virArch arch) return virCPUDefCopy(&cpuS390Data); else if (arch == VIR_ARCH_AARCH64) return virCPUDefCopy(&cpuAarch64Data); + else if (arch == VIR_ARCH_ARMV7L) + return virCPUDefCopy(&cpuArmV7lData); else if (arch == VIR_ARCH_SPARC) return virCPUDefCopy(&cpuSparcData); else if (arch == VIR_ARCH_RISCV64)