Skip to content

Commit e59b339

Browse files
npigginmpe
authored andcommitted
KVM: PPC: BookS PR-KVM and BookE do not support context tracking
The context tracking code in PR-KVM and BookE implementations is not complete, and can cause host crashes if context tracking is enabled. Make these implementations depend on !CONTEXT_TRACKING_USER. Signed-off-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 00ff1ea commit e59b339

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/powerpc/kvm/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ config KVM_BOOK3S_HV_POSSIBLE
5151
config KVM_BOOK3S_32
5252
tristate "KVM support for PowerPC book3s_32 processors"
5353
depends on PPC_BOOK3S_32 && !SMP && !PTE_64BIT
54+
depends on !CONTEXT_TRACKING_USER
5455
select KVM
5556
select KVM_BOOK3S_32_HANDLER
5657
select KVM_BOOK3S_PR_POSSIBLE
@@ -105,6 +106,7 @@ config KVM_BOOK3S_64_HV
105106
config KVM_BOOK3S_64_PR
106107
tristate "KVM support without using hypervisor mode in host"
107108
depends on KVM_BOOK3S_64
109+
depends on !CONTEXT_TRACKING_USER
108110
select KVM_BOOK3S_PR_POSSIBLE
109111
help
110112
Support running guest kernels in virtual machines on processors
@@ -190,6 +192,7 @@ config KVM_EXIT_TIMING
190192
config KVM_E500V2
191193
bool "KVM support for PowerPC E500v2 processors"
192194
depends on PPC_E500 && !PPC_E500MC
195+
depends on !CONTEXT_TRACKING_USER
193196
select KVM
194197
select KVM_MMIO
195198
select MMU_NOTIFIER
@@ -205,6 +208,7 @@ config KVM_E500V2
205208
config KVM_E500MC
206209
bool "KVM support for PowerPC E500MC/E5500/E6500 processors"
207210
depends on PPC_E500MC
211+
depends on !CONTEXT_TRACKING_USER
208212
select KVM
209213
select KVM_MMIO
210214
select KVM_BOOKE_HV

0 commit comments

Comments
 (0)