From 908e14f48382d839fa9c5bed98b41f34c11f3489 Mon Sep 17 00:00:00 2001 From: lijunwei Date: Wed, 28 Feb 2024 16:18:19 +0800 Subject: [PATCH] fix bug that virt-manager can not support dies --- virtManager/domain.py | 1 + virtinst/domain/cpu.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/virtManager/domain.py b/virtManager/domain.py index ad1c76d..cfe9f15 100644 --- a/virtManager/domain.py +++ b/virtManager/domain.py @@ -509,6 +509,7 @@ class vmmDomain(vmmLibvirtObject): guest.cpu.sockets = sockets guest.cpu.cores = cores guest.cpu.threads = threads + guest.cpu.dies = None if model != _SENTINEL: if model in guest.cpu.SPECIAL_MODES: diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py index 3548acd..7747082 100644 --- a/virtinst/domain/cpu.py +++ b/virtinst/domain/cpu.py @@ -62,7 +62,7 @@ class DomainCpu(XMLBuilder): """ XML_NAME = "cpu" _XML_PROP_ORDER = ["mode", "match", "_model", "vendor", - "sockets", "cores", "threads", "features"] + "sockets", "cores", "threads", "dies", "features"] special_mode_was_set = False # These values are exposed on the command line, so are stable API @@ -220,6 +220,7 @@ class DomainCpu(XMLBuilder): sockets = XMLProperty("./topology/@sockets", is_int=True) cores = XMLProperty("./topology/@cores", is_int=True) threads = XMLProperty("./topology/@threads", is_int=True) + dies = XMLProperty("./topology/@dies", is_int=True) ################## -- 2.20.1