mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-07 17:18:00 +03:00
2f89ecf4a9
Similar to what was done in libvirt. See these commits:600462834f
c99e954973
19 lines
473 B
Python
19 lines
473 B
Python
#
|
|
# Copyright 2010, 2013 Red Hat, Inc.
|
|
#
|
|
# This work is licensed under the GNU GPLv2 or later.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
from ..xmlbuilder import XMLBuilder, XMLProperty
|
|
|
|
|
|
class DomainNumatune(XMLBuilder):
|
|
"""
|
|
Class for generating <numatune> XML
|
|
"""
|
|
XML_NAME = "numatune"
|
|
_XML_PROP_ORDER = ["memory_mode", "memory_nodeset"]
|
|
|
|
memory_nodeset = XMLProperty("./memory/@nodeset")
|
|
memory_mode = XMLProperty("./memory/@mode")
|