cli: add --features hyperv.runtime.state=on/off

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina
2024-06-12 13:21:07 +02:00
committed by Cole Robinson
parent d2a29245cd
commit d7976a883a
4 changed files with 4 additions and 0 deletions

View File

@@ -138,6 +138,7 @@
<vapic state="on"/>
<spinlocks state="on" retries="5678"/>
<vpindex state="on"/>
<runtime state="on"/>
<synic state="on"/>
<reset state="on"/>
</hyperv>

View File

@@ -568,6 +568,7 @@ hyperv.vapic.state=off,hyperv_vapic=on,\
hyperv.spinlocks.state=on,hyperv_spinlocks=on,\
hyperv.spinlocks.retries=5678,hyperv_spinlocks_retries=5678,\
hyperv.vpindex.state=on,\
hyperv.runtime.state=on,\
hyperv.synic.state=on,hyperv_synic=on,\
hyperv.reset.state=off,hyperv_reset=on

View File

@@ -3011,6 +3011,7 @@ class ParserFeatures(VirtCLIParser):
cls.add_arg("hyperv.spinlocks.state", "hyperv_spinlocks", is_onoff=True)
cls.add_arg("hyperv.spinlocks.retries", "hyperv_spinlocks_retries")
cls.add_arg("hyperv.vpindex.state", "hyperv_vpindex", is_onoff=True)
cls.add_arg("hyperv.runtime.state", "hyperv_runtime", is_onoff=True)
cls.add_arg("hyperv.synic.state", "hyperv_synic", is_onoff=True)
cls.add_arg("hyperv.reset.state", "hyperv_reset", is_onoff=True)

View File

@@ -32,6 +32,7 @@ class DomainFeatures(XMLBuilder):
hyperv_spinlocks_retries = XMLProperty("./hyperv/spinlocks/@retries",
is_int=True)
hyperv_vpindex = XMLProperty("./hyperv/vpindex/@state", is_onoff=True)
hyperv_runtime = XMLProperty("./hyperv/runtime/@state", is_onoff=True)
hyperv_synic = XMLProperty("./hyperv/synic/@state", is_onoff=True)
hyperv_reset = XMLProperty("./hyperv/reset/@state", is_onoff=True)