Commit e59b3399 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

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: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221014030729.2077151-2-npiggin@gmail.com
parent 00ff1eaa
...@@ -51,6 +51,7 @@ config KVM_BOOK3S_HV_POSSIBLE ...@@ -51,6 +51,7 @@ config KVM_BOOK3S_HV_POSSIBLE
config KVM_BOOK3S_32 config KVM_BOOK3S_32
tristate "KVM support for PowerPC book3s_32 processors" tristate "KVM support for PowerPC book3s_32 processors"
depends on PPC_BOOK3S_32 && !SMP && !PTE_64BIT depends on PPC_BOOK3S_32 && !SMP && !PTE_64BIT
depends on !CONTEXT_TRACKING_USER
select KVM select KVM
select KVM_BOOK3S_32_HANDLER select KVM_BOOK3S_32_HANDLER
select KVM_BOOK3S_PR_POSSIBLE select KVM_BOOK3S_PR_POSSIBLE
...@@ -105,6 +106,7 @@ config KVM_BOOK3S_64_HV ...@@ -105,6 +106,7 @@ config KVM_BOOK3S_64_HV
config KVM_BOOK3S_64_PR config KVM_BOOK3S_64_PR
tristate "KVM support without using hypervisor mode in host" tristate "KVM support without using hypervisor mode in host"
depends on KVM_BOOK3S_64 depends on KVM_BOOK3S_64
depends on !CONTEXT_TRACKING_USER
select KVM_BOOK3S_PR_POSSIBLE select KVM_BOOK3S_PR_POSSIBLE
help help
Support running guest kernels in virtual machines on processors Support running guest kernels in virtual machines on processors
...@@ -190,6 +192,7 @@ config KVM_EXIT_TIMING ...@@ -190,6 +192,7 @@ config KVM_EXIT_TIMING
config KVM_E500V2 config KVM_E500V2
bool "KVM support for PowerPC E500v2 processors" bool "KVM support for PowerPC E500v2 processors"
depends on PPC_E500 && !PPC_E500MC depends on PPC_E500 && !PPC_E500MC
depends on !CONTEXT_TRACKING_USER
select KVM select KVM
select KVM_MMIO select KVM_MMIO
select MMU_NOTIFIER select MMU_NOTIFIER
...@@ -205,6 +208,7 @@ config KVM_E500V2 ...@@ -205,6 +208,7 @@ config KVM_E500V2
config KVM_E500MC config KVM_E500MC
bool "KVM support for PowerPC E500MC/E5500/E6500 processors" bool "KVM support for PowerPC E500MC/E5500/E6500 processors"
depends on PPC_E500MC depends on PPC_E500MC
depends on !CONTEXT_TRACKING_USER
select KVM select KVM
select KVM_MMIO select KVM_MMIO
select KVM_BOOKE_HV select KVM_BOOKE_HV
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment