summaryrefslogtreecommitdiff
path: root/virtinst/guest.py
diff options
context:
space:
mode:
authorAthina Plaskasoviti <athina.plaskasoviti@gmail.com>2019-06-04 10:50:18 +0300
committerCole Robinson <crobinso@redhat.com>2019-06-04 10:58:31 -0400
commit8c708210db44398a098abfc1f89a0a0bb83d2de8 (patch)
treea2052b68cef5032986e1588ec09fafee3aba5792 /virtinst/guest.py
parent304b323f5db16d471ef2fa096d894fec9554510d (diff)
downloadvirt-manager-8c708210db44398a098abfc1f89a0a0bb83d2de8.tar.gz
cli: Add --iothreads
XML Mapping: <domain> ... <iothreads>X</iothreads> ... </domain> Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Athina Plaskasoviti <athina.plaskasoviti@gmail.com>
Diffstat (limited to 'virtinst/guest.py')
-rw-r--r--virtinst/guest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/virtinst/guest.py b/virtinst/guest.py
index 5479d4e9..6a60583e 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -145,7 +145,7 @@ class Guest(XMLBuilder):
XML_NAME = "domain"
_XML_PROP_ORDER = [
"type", "name", "uuid", "genid", "genid_enable",
- "title", "description", "_metadata",
+ "title", "description", "_metadata", "iothreads",
"maxMemory", "maxMemorySlots", "memory", "_currentMemory",
"blkiotune", "memtune", "memoryBacking",
"_vcpus", "vcpu_current", "vcpu_placement",
@@ -179,6 +179,8 @@ class Guest(XMLBuilder):
name = XMLProperty("./name")
+ iothreads = XMLProperty("./iothreads", is_int=True)
+
def _set_currentMemory(self, val):
if val is not None:
val = int(val)