|
|
184e0d |
From adbffe066fd4141fd65b59b60afe20fc7104b512 Mon Sep 17 00:00:00 2001
|
|
|
184e0d |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
|
184e0d |
Date: Thu, 4 May 2017 13:03:34 +0200
|
|
|
184e0d |
Subject: virtinst.cpu: don't validate "cpus" for NUMA cells
|
|
|
184e0d |
|
|
|
184e0d |
This attribute doesn't set pinning to host CPUs, it configures which
|
|
|
184e0d |
guest vCPUs should belong to that guest NUMA node. If a guest has
|
|
|
184e0d |
more vCPUs than host you wouldn't be able to configure all guest
|
|
|
184e0d |
vCPUs to the NUMA nodes for guest.
|
|
|
184e0d |
|
|
|
184e0d |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
184e0d |
(cherry picked from commit 07eecfdcc780f7482d3636694e9e90bd5f590ce4)
|
|
|
184e0d |
|
|
|
184e0d |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1281526
|
|
|
184e0d |
|
|
|
184e0d |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
184e0d |
---
|
|
|
184e0d |
virtinst/cpu.py | 6 +-----
|
|
|
184e0d |
1 file changed, 1 insertion(+), 5 deletions(-)
|
|
|
184e0d |
|
|
|
184e0d |
diff --git a/virtinst/cpu.py b/virtinst/cpu.py
|
|
|
184e0d |
index cd9fa68e..468853f5 100644
|
|
|
184e0d |
--- a/virtinst/cpu.py
|
|
|
184e0d |
+++ b/virtinst/cpu.py
|
|
|
184e0d |
@@ -17,7 +17,6 @@
|
|
|
184e0d |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
184e0d |
# MA 02110-1301 USA.
|
|
|
184e0d |
|
|
|
184e0d |
-from .domainnumatune import DomainNumatune
|
|
|
184e0d |
from .xmlbuilder import XMLBuilder, XMLProperty, XMLChildProperty
|
|
|
184e0d |
|
|
|
184e0d |
|
|
|
184e0d |
@@ -28,11 +27,8 @@ class _CPUCell(XMLBuilder):
|
|
|
184e0d |
_XML_ROOT_NAME = "cell"
|
|
|
184e0d |
_XML_PROP_ORDER = ["id", "cpus", "memory"]
|
|
|
184e0d |
|
|
|
184e0d |
- def _validate_cpuset(self, val):
|
|
|
184e0d |
- DomainNumatune.validate_cpuset(self.conn, val)
|
|
|
184e0d |
-
|
|
|
184e0d |
id = XMLProperty("./@id", is_int=True)
|
|
|
184e0d |
- cpus = XMLProperty("./@cpus", validate_cb=_validate_cpuset)
|
|
|
184e0d |
+ cpus = XMLProperty("./@cpus")
|
|
|
184e0d |
memory = XMLProperty("./@memory", is_int=True)
|
|
|
184e0d |
|
|
|
184e0d |
|
|
|
184e0d |
--
|
|
|
184e0d |
2.13.0
|
|
|
184e0d |
|