From e3ec248cffb11d7aa2f212391b87cf1af800a78a Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Wed, 12 Jun 2024 11:55:34 +0200 Subject: [PATCH] cli: add --features hyperv.tblflush.state=on/off Signed-off-by: Pavel Hrdina --- tests/data/cli/compare/virt-install-many-devices.xml | 1 + tests/test_cli.py | 3 ++- virtinst/cli.py | 1 + virtinst/domain/features.py | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/data/cli/compare/virt-install-many-devices.xml b/tests/data/cli/compare/virt-install-many-devices.xml index f70034c41..11673d5b5 100644 --- a/tests/data/cli/compare/virt-install-many-devices.xml +++ b/tests/data/cli/compare/virt-install-many-devices.xml @@ -146,6 +146,7 @@ + diff --git a/tests/test_cli.py b/tests/test_cli.py index 17db14cc4..6fe44d89e 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -574,7 +574,8 @@ hyperv.stimer.state=on,\ hyperv.stimer.direct.state=on,\ hyperv.reset.state=off,hyperv_reset=on,\ hyperv.frequencies.state=on,\ -hyperv.reenlightenment.state=on +hyperv.reenlightenment.state=on,\ +hyperv.tlbflush.state=on --clock offset=utc,hpet_present=no,rtc_tickpolicy=merge,timer2.name=hypervclock,timer3.name=pit,timer1.present=yes,timer3.tickpolicy=delay,timer2.present=no,timer4.name=rtc,timer5.name=tsc,timer6.name=tsc,timer4.track=wall,timer5.frequency=10,timer6.mode=emulate,timer7.name=rtc,timer7.tickpolicy=catchup,timer7.catchup.threshold=123,timer7.catchup.slew=120,timer7.catchup.limit=10000,rtc_present=no,pit_present=yes,pit_tickpolicy=catchup,tsc_present=no,platform_present=no,hypervclock_present=no,platform_tickpolicy=foo,hpet_tickpolicy=bar,tsc_tickpolicy=wibble,kvmclock_tickpolicy=wobble,hypervclock_tickpolicy=woo diff --git a/virtinst/cli.py b/virtinst/cli.py index 970151f4d..8fc1ae2b6 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -3018,6 +3018,7 @@ class ParserFeatures(VirtCLIParser): cls.add_arg("hyperv.reset.state", "hyperv_reset", is_onoff=True) cls.add_arg("hyperv.frequencies.state", "hyperv_frequencies", is_onoff=True) cls.add_arg("hyperv.reenlightenment.state", "hyperv_reenlightenment", is_onoff=True) + cls.add_arg("hyperv.tlbflush.state", "hyperv_tlbflush", is_onoff=True) cls.add_arg("vmport.state", "vmport", is_onoff=True) cls.add_arg("kvm.hidden.state", "kvm_hidden", is_onoff=True) diff --git a/virtinst/domain/features.py b/virtinst/domain/features.py index 88167af04..c9cf49c70 100644 --- a/virtinst/domain/features.py +++ b/virtinst/domain/features.py @@ -39,6 +39,7 @@ class DomainFeatures(XMLBuilder): hyperv_reset = XMLProperty("./hyperv/reset/@state", is_onoff=True) hyperv_frequencies = XMLProperty("./hyperv/frequencies/@state", is_onoff=True) hyperv_reenlightenment = XMLProperty("./hyperv/reenlightenment/@state", is_onoff=True) + hyperv_tlbflush = XMLProperty("./hyperv/tlbflush/@state", is_onoff=True) vmport = XMLProperty("./vmport/@state", is_onoff=True) kvm_hidden = XMLProperty("./kvm/hidden/@state", is_onoff=True)