diff options
author | Ján Tomko <jtomko@redhat.com> | 2015-01-15 11:55:44 +0100 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2015-01-19 10:11:15 +0100 |
commit | bc378060f70c9eed0a51854a078a71a621d426d1 (patch) | |
tree | b5a32aabd278fcec588a643687c3d1e21e2f0863 | |
parent | 368042cf4a6bca34c7da45517a6e3ce91876c53c (diff) | |
download | libvirt-bc378060f70c9eed0a51854a078a71a621d426d1.tar.gz |
Add an XML test for host-model CPU with features
This was broken in a dowstream build due to a missing backport:
https://bugzilla.redhat.com/show_bug.cgi?id=1182448
-rw-r--r-- | tests/qemuxml2argvdata/qemuxml2argv-cpu-host-model-features.xml | 33 | ||||
-rw-r--r-- | tests/qemuxml2xmltest.c | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-cpu-host-model-features.xml b/tests/qemuxml2argvdata/qemuxml2argv-cpu-host-model-features.xml new file mode 100644 index 0000000000..c56d62ab9f --- /dev/null +++ b/tests/qemuxml2argvdata/qemuxml2argv-cpu-host-model-features.xml @@ -0,0 +1,33 @@ +<domain type='kvm'> + <name>QEMUGuest1</name> + <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid> + <title>A description of the test machine.</title> + <description> + A test of qemu's minimal configuration. + This test also tests the description and title elements. + </description> + <memory unit='KiB'>219100</memory> + <currentMemory unit='KiB'>219100</currentMemory> + <vcpu placement='static' cpuset='1-4,8-20,525'>1</vcpu> + <os> + <type arch='i686' machine='pc'>hvm</type> + <boot dev='hd'/> + </os> + <cpu mode='host-model'> + <model fallback='allow'/> + <feature policy='require' name='abm'/> + <feature policy='force' name='ds'/> + <feature policy='disable' name='invtsc'/> + </cpu> + <clock offset='utc'/> + <on_poweroff>destroy</on_poweroff> + <on_reboot>restart</on_reboot> + <on_crash>destroy</on_crash> + <devices> + <emulator>/usr/bin/qemu</emulator> + <controller type='usb' index='0'/> + <controller type='ide' index='0'/> + <controller type='pci' index='0' model='pci-root'/> + <memballoon model='virtio'/> + </devices> +</domain> diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 43db21b2b2..4abb30321a 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -188,6 +188,7 @@ mymain(void) DO_TEST("cpu-kvmclock"); DO_TEST("cpu-host-kvmclock"); DO_TEST("cpu-host-passthrough-features"); + DO_TEST("cpu-host-model-features"); DO_TEST("clock-catchup"); DO_TEST("kvmclock"); DO_TEST("clock-timer-hyperv-rtc"); |