KVM: arm64: Ignore 'kvm-arm.mode=protected' when using VHE
authorWill Deacon <will@kernel.org>
Thu, 9 Jun 2022 12:12:20 +0000 (13:12 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 9 Jun 2022 12:24:02 +0000 (13:24 +0100)
commitcde5042adf11b0a30a6ce0ec3d071afcf8d2efaf
tree4854b471468b011791c6fdec342b7c39e1a084b9
parentfa7a17214488ef7df347dcd1a5594f69ea17f4dc
KVM: arm64: Ignore 'kvm-arm.mode=protected' when using VHE

Ignore 'kvm-arm.mode=protected' when using VHE so that kvm_get_mode()
only returns KVM_MODE_PROTECTED on systems where the feature is available.

Cc: David Brazdil <dbrazdil@google.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220609121223.2551-4-will@kernel.org
Documentation/admin-guide/kernel-parameters.txt
arch/arm64/kernel/cpufeature.c
arch/arm64/kvm/arm.c