mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
cpu: Forbid model fallback in the ppc64 driver
Unlike what happens on x86, on ppc64 you can't mix and match CPU features to obtain the guest CPU you want regardless of the host CPU, so the concept of model fallback doesn't apply. Make sure CPU definitions emitted by the driver, eg. as output of the cpuBaseline() and cpuUpdate() calls, reflect this fact.
This commit is contained in:
parent
dee2247afa
commit
344d1675e8
@ -670,6 +670,7 @@ ppc64DriverUpdate(virCPUDefPtr guest,
|
|||||||
case VIR_CPU_MODE_HOST_MODEL:
|
case VIR_CPU_MODE_HOST_MODEL:
|
||||||
case VIR_CPU_MODE_HOST_PASSTHROUGH:
|
case VIR_CPU_MODE_HOST_PASSTHROUGH:
|
||||||
guest->match = VIR_CPU_MATCH_EXACT;
|
guest->match = VIR_CPU_MATCH_EXACT;
|
||||||
|
guest->fallback = VIR_CPU_FALLBACK_FORBID;
|
||||||
virCPUDefFreeModel(guest);
|
virCPUDefFreeModel(guest);
|
||||||
return virCPUDefCopyModel(guest, host, true);
|
return virCPUDefCopyModel(guest, host, true);
|
||||||
|
|
||||||
@ -768,6 +769,7 @@ ppc64DriverBaseline(virCPUDefPtr *cpus,
|
|||||||
|
|
||||||
cpu->type = VIR_CPU_TYPE_GUEST;
|
cpu->type = VIR_CPU_TYPE_GUEST;
|
||||||
cpu->match = VIR_CPU_MATCH_EXACT;
|
cpu->match = VIR_CPU_MATCH_EXACT;
|
||||||
|
cpu->fallback = VIR_CPU_FALLBACK_FORBID;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
ppc64MapFree(map);
|
ppc64MapFree(map);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user