tests: add some vmport tests

Message-Id: <1428012248-5767-6-git-send-email-marcandre.lureau@gmail.com>
This commit is contained in:
Marc-André Lureau 2015-04-03 00:04:08 +02:00 committed by Cole Robinson
parent ddfca74e54
commit e2184ea2cf
5 changed files with 6 additions and 1 deletions

View File

@ -49,6 +49,7 @@
<hyperv>
<spinlocks state="on" retries="1234"/>
</hyperv>
<vmport state="off"/>
</features>
<cpu mode="custom" match="strict">
<model>foobar</model>
@ -169,6 +170,7 @@
<hyperv>
<spinlocks state="on" retries="1234"/>
</hyperv>
<vmport state="off"/>
</features>
<cpu mode="custom" match="strict">
<model>foobar</model>

View File

@ -415,7 +415,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 \
--features acpi=off,eoi=on,privnet=on,hyperv_spinlocks=on,hyperv_spinlocks_retries=1234,vmport=off \
--clock offset=utc,hpet_present=no,rtc_tickpolicy=merge \
--pm suspend_to_mem=yes,suspend_to_disk=no \
--resource partition=/virtualmachines/production \

View File

@ -13,6 +13,7 @@
<vapic state='off'/>
<spinlocks state='on' retries='12287'/>
</hyperv>
<vmport state='off'/>
</features>
<numatune>
<memory mode='interleave' nodeset='1-5,^3,7'/>

View File

@ -19,6 +19,7 @@
<spinlocks state="on" retries="54321"/>
<relaxed state="on"/>
</hyperv>
<vmport state="on"/>
<viridian/>
</features>
<numatune>

View File

@ -168,6 +168,7 @@ class XMLParseTest(unittest.TestCase):
check("hyperv_vapic", False, None)
check("hyperv_spinlocks", True, True)
check("hyperv_spinlocks_retries", 12287, 54321)
check("vmport", False, True)
check = self._make_checker(guest.cpu)
check("match", "exact", "strict")