mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 12:51:12 +00:00
f1e288f6d4
Previously without modern capabilities the test was relying on a CPU model which was not entered into a fake list of supported cpus. With real capabilities we have to pick a CPU model which is supported by libvirt but in some version is not supported by qemu. I've picked EPYC-Milan, which was introduced into qemu-6.0. This test configures a CPU which is equivalent to EPYC-Rome by disabling features from EPYC-Milan and uses a versioned real caps test to check it against a qemu which doesn't support EPYC-Milan. With real capabilities though, we can also do a positive test case by using a version whic doesh support it. I've specifically not used the LATEST caps so that it doesn't change once capabilities are bumped. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
31 lines
1000 B
XML
31 lines
1000 B
XML
<domain type='kvm'>
|
|
<name>QEMUGuest1</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory unit='KiB'>219100</memory>
|
|
<currentMemory unit='KiB'>219100</currentMemory>
|
|
<vcpu placement='static'>6</vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
|
<boot dev='network'/>
|
|
</os>
|
|
<cpu match='exact'>
|
|
<model>EPYC-Milan</model>
|
|
<feature policy='disable' name='amd-ssbd'/>
|
|
<feature policy='disable' name='erms'/>
|
|
<feature policy='disable' name='fsrm'/>
|
|
<feature policy='disable' name='ibrs'/>
|
|
<feature policy='disable' name='invpcid'/>
|
|
<feature policy='disable' name='pcid'/>
|
|
<feature policy='disable' name='pku'/>
|
|
<feature policy='disable' name='svme-addr-chk'/>
|
|
<feature policy='disable' name='xsaves'/>
|
|
</cpu>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
|
</devices>
|
|
</domain>
|