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 0000000000000000000000000000000000000000..84f102060ba0d51dc15d2a10246da52e996706a2 --- /dev/null +++ b/0001-fix-bug-that-virt-manager-can-not-support-dies.patch @@ -0,0 +1,46 @@ +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 + diff --git a/virt-manager.spec b/virt-manager.spec index b384b17c8f82ed11b0f33f2bf0a7a211d4e1b53c..59ab46cef98cd2357c0915d230739e3d729f6f09 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 @@ -9,6 +9,7 @@ URL: https://virt-manager.org/ Source0: https://virt-manager.org/download/sources/virt-manager/virt-manager-%{version}.tar.gz Patch0001: 0001-initrdinject-Use-full-option-versions-for-cpio.patch Patch0002: 0002-initrdinject-Force-added-files-to-be-owned-as-root-b.patch +Patch0003: 0001-fix-bug-that-virt-manager-can-not-support-dies.patch Requires: virt-manager-common = %{version}-%{release} python3-gobject gtk3 libvirt-glib >= 0.0.9 Requires: gtk-vnc2 spice-gtk3 dconf vte291 Recommends: (libvirt-daemon-kvm or libvirt-daemon-qemu) libvirt-daemon-config-network @@ -81,5 +82,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