diff options
author | Athina Plaskasoviti <athina.plaskasoviti@gmail.com> | 2019-06-04 10:50:18 +0300 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-06-04 10:58:31 -0400 |
commit | 8c708210db44398a098abfc1f89a0a0bb83d2de8 (patch) | |
tree | a2052b68cef5032986e1588ec09fafee3aba5792 /virtinst/guest.py | |
parent | 304b323f5db16d471ef2fa096d894fec9554510d (diff) | |
download | virt-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.py | 4 |
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) |