Skip to content

Commit f2a5b1d

Browse files
James Hoganralfbaechle
authored andcommitted
MIPS: KVM: Mark KVM_GUEST (T&E KVM) as BROKEN_ON_SMP
Make KVM_GUEST depend on BROKEN_ON_SMP so that it cannot be enabled with SMP. SMP kernels use ll/sc instructions for an atomic section in the tlb fill handler, with a tlbp instruction contained in the middle. This cannot be emulated with trap & emulate KVM because the tlbp instruction traps and the eret to return to the guest code clears the LLbit which makes the sc instruction always fail. Signed-off-by: James Hogan <[email protected]> Cc: Sanjay Lal <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: David Daney <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/5588/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent 38a997a commit f2a5b1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/mips/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,7 @@ endchoice
17021702

17031703
config KVM_GUEST
17041704
bool "KVM Guest Kernel"
1705+
depends on BROKEN_ON_SMP
17051706
help
17061707
Select this option if building a guest kernel for KVM (Trap & Emulate) mode
17071708

0 commit comments

Comments
 (0)