From d2a29245cdacbf876a874b076487118620ba0063 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Wed, 12 Jun 2024 13:19:20 +0200 Subject: [PATCH] cli: add --features hyperv.vpindex.state=on/off Signed-off-by: Pavel Hrdina --- tests/data/cli/compare/virt-install-many-devices.xml | 1 + tests/test_cli.py | 1 + virtinst/cli.py | 1 + virtinst/domain/features.py | 1 + 4 files changed, 4 insertions(+) diff --git a/tests/data/cli/compare/virt-install-many-devices.xml b/tests/data/cli/compare/virt-install-many-devices.xml index bcdb3bbf9..e1dc03828 100644 --- a/tests/data/cli/compare/virt-install-many-devices.xml +++ b/tests/data/cli/compare/virt-install-many-devices.xml @@ -137,6 +137,7 @@ + diff --git a/tests/test_cli.py b/tests/test_cli.py index 983fcaee9..193f02ed1 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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 diff --git a/virtinst/cli.py b/virtinst/cli.py index b7cd05b5f..a9b1d899b 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -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) diff --git a/virtinst/domain/features.py b/virtinst/domain/features.py index 57173cb0a..469dd073e 100644 --- a/virtinst/domain/features.py +++ b/virtinst/domain/features.py @@ -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)