mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +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.
26 lines
652 B
XML
26 lines
652 B
XML
<domain type="qemu">
|
|
<name>aarch64-virt-default-nic</name>
|
|
<uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
|
|
<memory>1048576</memory>
|
|
<currentMemory>1048576</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<features>
|
|
<acpi/>
|
|
</features>
|
|
<cpu match='exact'>
|
|
<model>cortex-a53</model>
|
|
</cpu>
|
|
<os>
|
|
<type arch="aarch64" machine="virt">hvm</type>
|
|
<kernel>/aarch64.kernel</kernel>
|
|
<initrd>/aarch64.initrd</initrd>
|
|
<cmdline>console=ttyAMA0</cmdline>
|
|
</os>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-aarch64</emulator>
|
|
<interface type='user'>
|
|
<mac address='52:54:00:09:a4:37'/>
|
|
</interface>
|
|
</devices>
|
|
</domain>
|