aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/hyp/nvhe/switch.c
diff options
context:
space:
mode:
authorElliot Berman <quic_eberman@quicinc.com>2022-09-20 12:06:58 -0700
committerMarc Zyngier <maz@kernel.org>2022-09-26 10:49:49 +0100
commitb2a4d007c347b4cb4c60f7512733c3f8300a129c (patch)
treeebc249c276aabbddc55fa1781c1a640c69fa277d /arch/arm64/kvm/hyp/nvhe/switch.c
parentKVM: arm64: vgic: Remove duplicate check in update_affinity_collection() (diff)
downloadlinux-dev-b2a4d007c347b4cb4c60f7512733c3f8300a129c.tar.xz
linux-dev-b2a4d007c347b4cb4c60f7512733c3f8300a129c.zip
KVM: arm64: Ignore kvm-arm.mode if !is_hyp_mode_available()
Ignore kvm-arm.mode if !is_hyp_mode_available(). Specifically, we want to avoid switching kvm_mode to KVM_MODE_PROTECTED if hypervisor mode is not available. This prevents "Protected KVM" cpu capability being reported when Linux is booting in EL1 and would not have KVM enabled. Reasonably though, we should warn if the command line is requesting a KVM mode at all if KVM isn't actually available. Allow "kvm-arm.mode=none" to skip the warning since this would disable KVM anyway. Signed-off-by: Elliot Berman <quic_eberman@quicinc.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220920190658.2880184-1-quic_eberman@quicinc.com
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions