virtinst.cpu: don't validate "cpus" for NUMA cells

This attribute doesn't set pinning to host CPUs, it configures which
guest vCPUs should belong to that guest NUMA node.  If a guest has
more vCPUs than host you wouldn't be able to configure all guest
vCPUs to the NUMA nodes for guest.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2017-05-04 13:03:34 +02:00
parent 733d541624
commit 07eecfdcc7
1 changed files with 1 additions and 5 deletions

View File

@ -17,7 +17,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
from .domainnumatune import DomainNumatune
from .xmlbuilder import XMLBuilder, XMLProperty, XMLChildProperty
@ -28,11 +27,8 @@ class _CPUCell(XMLBuilder):
_XML_ROOT_NAME = "cell"
_XML_PROP_ORDER = ["id", "cpus", "memory"]
def _validate_cpuset(self, val):
DomainNumatune.validate_cpuset(self.conn, val)
id = XMLProperty("./@id", is_int=True)
cpus = XMLProperty("./@cpus", validate_cb=_validate_cpuset)
cpus = XMLProperty("./@cpus")
memory = XMLProperty("./@memory", is_int=True)