mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemu: Fix CPU model fallback in domain capabilities
Our documentation of the domain capabilities XML says that the fallback attribute of a CPU model is used to indicate whether the CPU model was detected by libvirt itself (fallback="allow") or by asking the hypervisor (fallback="forbid"). We need to properly set fallback="forbid" when CPU model comes from QEMU to match the documentation. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
bd440735e3
commit
390a1e2bfd
@ -3105,6 +3105,9 @@ virQEMUCapsInitCPUModel(virQEMUCapsPtr qemuCaps,
|
||||
if (ARCH_IS_S390(qemuCaps->arch))
|
||||
ret = virQEMUCapsInitCPUModelS390(qemuCaps, cpu);
|
||||
|
||||
if (ret == 0)
|
||||
cpu->fallback = VIR_CPU_FALLBACK_FORBID;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
<cpu>
|
||||
<mode name='host-passthrough' supported='yes'/>
|
||||
<mode name='host-model' supported='yes'>
|
||||
<model fallback='allow'>zEC12.2-base</model>
|
||||
<model fallback='forbid'>zEC12.2-base</model>
|
||||
<feature policy='require' name='aefsi'/>
|
||||
<feature policy='require' name='msa5'/>
|
||||
<feature policy='require' name='msa4'/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user