[libvirt PATCH 07/10] tests: add fake host CPU for sparc architecture

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 tests/testutilshostcpus.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/testutilshostcpus.h b/tests/testutilshostcpus.h
index a54b181c09..91d9c153d9 100644
--- a/tests/testutilshostcpus.h
+++ b/tests/testutilshostcpus.h
@@ -130,6 +130,14 @@ static virCPUDef cpuS390Data = {
     .threads = 1,
 };
 
+static virCPUDef cpuSparcData = {
+    .type = VIR_CPU_TYPE_HOST,
+    .arch = VIR_ARCH_SPARC,
+    .sockets = 1,
+    .cores = 1,
+    .threads = 1,
+};
+
 static inline virCPUDefPtr
 testUtilsHostCpusGetDefForModel(const char *model)
 {
@@ -161,6 +169,8 @@ testUtilsHostCpusGetDefForArch(virArch arch)
         return virCPUDefCopy(&cpuS390Data);
     else if (arch == VIR_ARCH_AARCH64)
         return virCPUDefCopy(&cpuAarch64Data);
+    else if (arch == VIR_ARCH_SPARC)
+        return virCPUDefCopy(&cpuSparcData);
 
     return NULL;
 }
-- 
2.28.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux