From a12b29f654004a3d74ccab3a4160c16efbfb928f Mon Sep 17 00:00:00 2001 From: lijunwei Date: Wed, 28 Feb 2024 15:06:45 +0800 Subject: [PATCH] fix bug that virt-manager can not support features dies --- ...at-virt-manager-can-not-support-dies.patch | 47 +++++++++++++++++++ virt-manager.spec | 5 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 0001-fix-bug-that-virt-manager-can-not-support-dies.patch diff --git a/0001-fix-bug-that-virt-manager-can-not-support-dies.patch b/0001-fix-bug-that-virt-manager-can-not-support-dies.patch new file mode 100644 index 0000000..938dba5 --- /dev/null +++ b/0001-fix-bug-that-virt-manager-can-not-support-dies.patch @@ -0,0 +1,47 @@ +From 8b09ac9855c051fc4f52538e168f0ddd64bcb963 Mon Sep 17 00:00:00 2001 +From: weishaokun +Date: Thu, 1 Feb 2024 15:28:17 +0800 +Subject: [PATCH] fix bug that virt-manager can not support dies + +Change-Id: Id791f0d9e93613e8085167753a292deb5c7b4db7 +--- + virtManager/object/domain.py | 1 + + virtinst/domain/cpu.py | 3 ++- + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py +index f61f0f5..9ebda3f 100644 +--- a/virtManager/object/domain.py ++++ b/virtManager/object/domain.py +@@ -464,6 +464,7 @@ class vmmDomain(vmmLibvirtObject): + guest.cpu.sockets = sockets + guest.cpu.cores = cores + guest.cpu.threads = threads ++ guest.cpu.dies = None + + if secure != _SENTINEL or model != _SENTINEL: + guest.cpu.secure = secure +diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py +index 5fb3d22..b671f04 100644 +--- a/virtinst/domain/cpu.py ++++ b/virtinst/domain/cpu.py +@@ -65,7 +65,7 @@ class DomainCpu(XMLBuilder): + """ + XML_NAME = "cpu" + _XML_PROP_ORDER = ["mode", "match", "model", "vendor", +- "sockets", "cores", "threads", "features"] ++ "sockets", "cores", "threads", "dies", "features"] + + secure = True + +@@ -264,6 +264,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 + diff --git a/virt-manager.spec b/virt-manager.spec index b384b17..afc9d8c 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -1,7 +1,7 @@ %global __python %{__python3} Name: virt-manager Version: 2.1.0 -Release: 3 +Release: 4 Summary: The manage virtual machines tool which via libvirt. License: GPLv2+ BuildArch: noarch @@ -81,5 +81,8 @@ done %{_mandir}/man1/{virt-install.1*,virt-clone.1*,virt-convert.1*,virt-xml.1*} %changelog +* Wed Feb 28 2024 lijunwei - 2.1.0-4 +* fix bug that virt-manager can not support features dies + * Wed Apr 22 2020 Jeffery.Gao - 2.1.0-3 - Package init -- Gitee