Skip to content

Commit abf532c

Browse files
robherringctmarinas
authored andcommitted
KVM: arm64: Print warning when cpu erratum can cause guests to deadlock
If guests don't have certain CPU erratum workarounds implemented, then there is a possibility a guest can deadlock the system. IOW, only trusted guests should be used on systems with the erratum. This is the case for Cortex-A57 erratum 832075. Signed-off-by: Rob Herring <[email protected]> Acked-by: Will Deacon <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: James Morse <[email protected]> Cc: Julien Thierry <[email protected]> Cc: Suzuki K Poulose <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent bf87bb0 commit abf532c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm64/kvm/arm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,10 @@ int kvm_arch_init(void *opaque)
16401640
return -ENODEV;
16411641
}
16421642

1643+
if (cpus_have_final_cap(ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE))
1644+
kvm_info("Guests without required CPU erratum workarounds can deadlock system!\n" \
1645+
"Only trusted guests should be used on this system.\n");
1646+
16431647
for_each_online_cpu(cpu) {
16441648
smp_call_function_single(cpu, check_kvm_target_cpu, &ret, 1);
16451649
if (ret < 0) {

0 commit comments

Comments
 (0)