virt-install: support --features hyperv_reset=(on/off)

This commit is contained in:
venkat 2017-03-27 19:25:42 +05:30 committed by Cole Robinson
parent 2c8ed52813
commit 935c93812f
4 changed files with 5 additions and 1 deletions

View File

@ -76,6 +76,7 @@
<privnet/>
<pmu state="off"/>
<hyperv>
<reset state="on"/>
<spinlocks state="on" retries="1234"/>
</hyperv>
<vmport state="off"/>
@ -228,6 +229,7 @@
<privnet/>
<pmu state="off"/>
<hyperv>
<reset state="on"/>
<spinlocks state="on" retries="1234"/>
</hyperv>
<vmport state="off"/>

View File

@ -426,7 +426,7 @@ c.add_compare("""--pxe \
--memtune hard_limit=10,soft_limit=20,swap_hard_limit=30,min_guarantee=40 \
--blkiotune weight=100,device_path=/home/test/1.img,device_weight=200 \
--memorybacking size=1,unit='G',nodeset='1,2-5',nosharepages=yes,locked=yes \
--features acpi=off,eoi=on,privnet=on,hyperv_spinlocks=on,hyperv_spinlocks_retries=1234,vmport=off,pmu=off \
--features acpi=off,eoi=on,privnet=on,hyperv_reset=on,hyperv_spinlocks=on,hyperv_spinlocks_retries=1234,vmport=off,pmu=off \
--clock offset=utc,hpet_present=no,rtc_tickpolicy=merge \
--sysinfo type=smbios,bios_vendor="Acme LLC",bios_version=1.2.3,bios_date=01/01/1970,bios_release=10.22 \
--sysinfo type=smbios,system_manufacturer="Acme Inc.",system_product=Computer,system_version=3.2.1,system_serial=123456789,system_uuid=00000000-1111-2222-3333-444444444444,system_sku=abc-123,system_family=Server \

View File

@ -1675,6 +1675,7 @@ ParserFeatures.add_arg("viridian", "viridian", is_onoff=True)
ParserFeatures.add_arg("eoi", "eoi", is_onoff=True)
ParserFeatures.add_arg("pmu", "pmu", is_onoff=True)
ParserFeatures.add_arg("hyperv_reset", "hyperv_reset", is_onoff=True)
ParserFeatures.add_arg("hyperv_vapic", "hyperv_vapic", is_onoff=True)
ParserFeatures.add_arg("hyperv_relaxed", "hyperv_relaxed", is_onoff=True)
ParserFeatures.add_arg("hyperv_spinlocks", "hyperv_spinlocks", is_onoff=True)

View File

@ -42,6 +42,7 @@ class DomainFeatures(XMLBuilder):
pmu = XMLProperty("./pmu/@state", is_onoff=True)
eoi = XMLProperty("./apic/@eoi", is_onoff=True)
hyperv_reset = XMLProperty("./hyperv/reset/@state", is_onoff=True)
hyperv_vapic = XMLProperty("./hyperv/vapic/@state", is_onoff=True)
hyperv_relaxed = XMLProperty("./hyperv/relaxed/@state", is_onoff=True)
hyperv_spinlocks = XMLProperty("./hyperv/spinlocks/@state", is_onoff=True)