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

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

View File

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

View File

@ -567,6 +567,7 @@ hyperv.relaxed.state=off,\
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.synic.state=on,hyperv_synic=on,\
hyperv.reset.state=off,hyperv_reset=on

View File

@ -3010,6 +3010,7 @@ class ParserFeatures(VirtCLIParser):
cls.add_arg("hyperv.vapic.state", "hyperv_vapic", is_onoff=True)
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.synic.state", "hyperv_synic", is_onoff=True)
cls.add_arg("hyperv.reset.state", "hyperv_reset", is_onoff=True)

View File

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