[PATCH 03/25] testutilshostcpus: Add support for VIR_ARCH_ARMV7L

Peter Krempa posted 25 patches 1 year, 11 months ago
[PATCH 03/25] testutilshostcpus: Add support for VIR_ARCH_ARMV7L
Posted by Peter Krempa 1 year, 11 months ago
Allow using armv7l arch in a capability dump.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 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)
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org