mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
Add loongarch support
Define the judgment function of loongarch architecture. Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
This commit is contained in:
parent
eee8d09dfe
commit
d2cf01b3eb
@ -77,6 +77,8 @@ class DomainOs(XMLBuilder):
|
||||
return self.arch == "riscv64" or self.arch == "riscv32"
|
||||
def is_riscv_virt(self):
|
||||
return self.is_riscv() and str(self.machine).startswith("virt")
|
||||
def is_loongarch64(self):
|
||||
return self.arch == "loongarch64"
|
||||
|
||||
##################
|
||||
# XML properties #
|
||||
|
Loading…
Reference in New Issue
Block a user