2014-09-23 17:07:09 +00:00
|
|
|
<domain type='kvm'>
|
2011-12-21 13:27:16 +00:00
|
|
|
<name>f14</name>
|
|
|
|
<uuid>553effab-b5e1-2d80-dfe3-da4344826c43</uuid>
|
2012-02-23 00:48:38 +00:00
|
|
|
<memory unit='KiB'>1048576</memory>
|
|
|
|
<currentMemory unit='KiB'>1048576</currentMemory>
|
2012-05-08 16:04:36 +00:00
|
|
|
<vcpu placement='static'>2</vcpu>
|
2011-12-21 13:27:16 +00:00
|
|
|
<os>
|
2022-01-04 15:36:46 +00:00
|
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
2011-12-21 13:27:16 +00:00
|
|
|
<boot dev='cdrom'/>
|
|
|
|
<boot dev='hd'/>
|
|
|
|
<bootmenu enable='yes'/>
|
|
|
|
</os>
|
|
|
|
<features>
|
|
|
|
<acpi/>
|
|
|
|
<apic/>
|
|
|
|
<pae/>
|
|
|
|
</features>
|
tests/qemuxml2*/graphics-spice-timeout: skip CPU model check
Commit 65b0b746b516 changed spice tests to use latest caps. Before this
change, "FLAG_REAL_CAPS" wasn't being set in testQemuInfoInitArgs(). The
absence of this flag triggered the code path inside
testCompareXMLToArgv() that executed testUpdateQEMUCaps(). This function
will update the host CPU via virQEMUCapsUpdateHostCPUModel() into
virQEMUCapsInitHostCPUModel(). In this function,
virQEMUCapsInitCPUModel() would end up updating the hostCPU inside the
qemuCaps (via virQEMUCapsProbeHostCPU()). Before the forementioned
commit, the host CPU was being defaulted to x86_64, vendor Intel, for
the 'graphics-spice-timeout' test that is using the 'pc' machine type
and 'accel=kvm'.
Today, "FLAG_REAL_CAPS" is being set because we're using the latest caps
from x86_64. This means that the whole code path mentioned above is
skipped. qemuCaps are now being loaded via virQEMUCapsLoadCache()
directly. Without the handling being done by testUpdateQEMUCaps(), the
host CPU is being retrieved later on, down below
qemuProcessCreatePretendCmdPrepare() into qemuProcessUpdateGuestCPU().
The latter will attempt to update the domain cpu and executing a
virCPUCompare with the hostCPU and def->cpu.
All this logic ended up causing a failure of the
'graphics-spice-timeout' test in ppc64 and s390x hosts. This test is
being run with KVM acceleration, and the KVM driver for ppc64 and s390x
will return a default x86_64 CPU with vendor "AMD", making
virCPUCompare() fail with the following message:
"QEMU XML-2-ARGV graphics-spice-timeout.x86_64-latest ... libvirt: CPU
Driver error : the CPU is incompatible with host CPU: host CPU vendor does
not match required CPU vendor Intel"
Fix this test by setting cpu check='none' and avoid the virCPUCompare()
that causes the problem for ppc64 and s390x hosts.
Note that this is a build fix. A more adequate fix would be to mock the
getHost() interface of the cpuDriverX86 for non-x86 hosts, allowing
'fullCPU' to be retrieved in qemuProcessUpdateGuestCPU(), and a proper
x86 CPU to be retrieved in the scenario described above.
Reported-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
2021-11-16 17:21:11 +00:00
|
|
|
<cpu mode='custom' match='exact' check='none'>
|
2022-08-18 14:13:45 +00:00
|
|
|
<model fallback='forbid'>qemu64</model>
|
2011-12-21 13:27:16 +00:00
|
|
|
</cpu>
|
|
|
|
<clock offset='utc'/>
|
|
|
|
<on_poweroff>destroy</on_poweroff>
|
|
|
|
<on_reboot>restart</on_reboot>
|
|
|
|
<on_crash>restart</on_crash>
|
|
|
|
<devices>
|
2022-01-04 15:36:46 +00:00
|
|
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
2011-12-21 13:27:16 +00:00
|
|
|
<controller type='ide' index='0'>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
|
|
|
</controller>
|
|
|
|
<controller type='virtio-serial' index='0'>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
|
|
|
|
</controller>
|
2021-10-13 15:03:33 +00:00
|
|
|
<controller type='usb' index='0' model='piix3-uhci'>
|
2016-01-27 21:03:52 +00:00
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
|
|
|
</controller>
|
2013-04-22 12:16:13 +00:00
|
|
|
<controller type='pci' index='0' model='pci-root'/>
|
2011-12-21 13:27:16 +00:00
|
|
|
<interface type='ethernet'>
|
|
|
|
<mac address='52:54:00:71:70:89'/>
|
|
|
|
<script path='/etc/qemu-ifup'/>
|
2013-02-19 16:33:52 +00:00
|
|
|
<model type='rtl8139'/>
|
2011-12-21 13:27:16 +00:00
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
|
|
|
</interface>
|
|
|
|
<input type='tablet' bus='usb'/>
|
|
|
|
<input type='mouse' bus='ps2'/>
|
2014-02-17 10:17:53 +00:00
|
|
|
<input type='keyboard' bus='ps2'/>
|
2016-05-09 13:50:54 +00:00
|
|
|
<graphics type='spice' port='5900' autoport='no' passwd='sercet' passwdValidTo='2011-05-31T16:11:22' connected='disconnect'>
|
|
|
|
<listen type='address'/>
|
|
|
|
</graphics>
|
2011-12-21 13:27:16 +00:00
|
|
|
<sound model='ac97'>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
|
|
|
</sound>
|
2021-02-24 14:24:10 +00:00
|
|
|
<audio id='1' type='spice'/>
|
2011-12-21 13:27:16 +00:00
|
|
|
<video>
|
2016-02-23 12:00:24 +00:00
|
|
|
<model type='vga' vram='16384' heads='1' primary='yes'/>
|
2011-12-21 13:27:16 +00:00
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
|
|
</video>
|
|
|
|
<memballoon model='virtio'>
|
|
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
|
|
|
</memballoon>
|
|
|
|
</devices>
|
|
|
|
</domain>
|