summaryrefslogtreecommitdiff
path: root/virtinst/domain
diff options
context:
space:
mode:
authorHugues Fafard <fafardh@posteo.de>2021-07-26 15:53:51 +0200
committerCole Robinson <crobinso@redhat.com>2021-07-27 08:28:10 -0400
commitc2f629fc037356528be4ee68ac528336fd103576 (patch)
treea81c86172f3765f9834e929948034b370077ae8d /virtinst/domain
parentf0f7ae2d1caa6c98b6b8770412d27cee360939ad (diff)
downloadvirt-manager-c2f629fc037356528be4ee68ac528336fd103576.tar.gz
cli: --cputune: add iothreadpin[0-9]* config
This adds the following suboptions to configure the <domain><cputune><iothreadpin> list: * iothreadpin[0-9]*.iothread * iothreadpin[0-9]*.cpuset
Diffstat (limited to 'virtinst/domain')
-rw-r--r--virtinst/domain/cputune.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/virtinst/domain/cputune.py b/virtinst/domain/cputune.py
index 9e84e1f6..3f1a541c 100644
--- a/virtinst/domain/cputune.py
+++ b/virtinst/domain/cputune.py
@@ -17,6 +17,17 @@ class _VCPUPin(XMLBuilder):
cpuset = XMLProperty("./@cpuset")
+class _IOThreadPin(XMLBuilder):
+ """
+ Class for generating <cputune> child <iothreadpin> XML
+ """
+ XML_NAME = "iothreadpin"
+ _XML_PROP_ORDER = ["iothread", "cpuset"]
+
+ iothread = XMLProperty("./@iothread", is_int=True)
+ cpuset = XMLProperty("./@cpuset")
+
+
class _CacheCPU(XMLBuilder):
"""
Class for generating <cachetune> child <cache> XML
@@ -80,10 +91,11 @@ class DomainCputune(XMLBuilder):
Class for generating <cpu> XML
"""
XML_NAME = "cputune"
- _XML_PROP_ORDER = ["vcpus", "emulatorpin_cpuset", "cachetune",
- "memorytune", "vcpusched"]
+ _XML_PROP_ORDER = ["vcpus", "emulatorpin_cpuset", "iothreadpin",
+ "cachetune", "memorytune", "vcpusched"]
vcpus = XMLChildProperty(_VCPUPin)
+ iothreadpin = XMLChildProperty(_IOThreadPin)
cachetune = XMLChildProperty(_CacheTuneCPU)
memorytune = XMLChildProperty(_MemoryTuneCPU)
vcpusched = XMLChildProperty(_VCPUSched)