From 04751a30760ae367d6b615ade7bbd658025d2f1d Mon Sep 17 00:00:00 2001
From: wzx <wuzx1226@qq.com>
Date: Wed, 26 Oct 2022 10:12:57 +0800
Subject: [PATCH] Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
---
 virtManager/create.py | 1 +
 virtinst/domain/os.py | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/virtManager/create.py b/virtManager/create.py
index ff3373d..e7ddd0c 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -427,6 +427,7 @@ class vmmCreate(vmmGObjectUI):
 
         installable_arch = bool(guest.os.is_x86() or
                 guest.os.is_ppc64() or
+                guest.os.is_sw_64() or
                 guest.os.is_s390x())
 
         if guest.prefers_uefi():
diff --git a/virtinst/domain/os.py b/virtinst/domain/os.py
index 32343ab..fdcaa19 100644
--- a/virtinst/domain/os.py
+++ b/virtinst/domain/os.py
@@ -46,6 +46,8 @@ class DomainOs(XMLBuilder):
         return self.arch == "armv7l"
     def is_arm64(self):
         return self.arch == "aarch64"
+    def is_sw_64(self):
+        return self.arch == "sw_64"
     def is_arm(self):
         return self.is_arm32() or self.is_arm64()
     def is_arm_vexpress(self):
-- 
2.33.0

