mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +00:00
445a09bdc9
Right now when building the qemu command line, we try to do various unconditional validations of the guest CPU against the host CPU. However this checks are overly applied. The only time we should use the checks are: - The user requests host-model/host-passthrough, or - When KVM is requsted. CPU features requested in TCG mode are always emulated by qemu and are independent of the host CPU, so no host CPU checks should be performed. Right now if trying to specify a CPU for arm on an x86 host, it attempts to do non-sensical validation and falls over. Switch all the test cases that were intending to test CPU validation to use KVM, so they continue to test the intended code. Amend some aarch64 XML tests with a CPU model, to ensure things work correctly.
39 lines
1.3 KiB
XML
39 lines
1.3 KiB
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='strict'>
|
|
<model>core2duo</model>
|
|
<feature name='lahf_lm' policy='require'/>
|
|
<feature name='xtpr' policy='require'/>
|
|
<feature name='cx16' policy='disable'/>
|
|
<feature name='tm2' policy='disable'/>
|
|
<feature name='est' policy='optional'/>
|
|
<feature name='vmx' policy='optional'/>
|
|
<feature name='ds_cpl' policy='require'/>
|
|
<feature name='pbe' policy='disable'/>
|
|
<feature name='tm' policy='optional'/>
|
|
<feature name='ht' policy='require'/>
|
|
<feature name='ss' policy='disable'/>
|
|
<feature name='acpi' policy='optional'/>
|
|
<feature name='ds' policy='require'/>
|
|
<feature name='nx' policy='disable'/>
|
|
<feature name='3dnowext' policy='force'/>
|
|
<feature name='sse4a' policy='optional'/>
|
|
<feature name='wdt' policy='forbid'/>
|
|
</cpu>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
|
</devices>
|
|
</domain>
|