KVM: arm64: Allow KVM to be disabled from the command line
authorMarc Zyngier <maz@kernel.org>
Fri, 1 Oct 2021 17:05:53 +0000 (18:05 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 11 Oct 2021 08:48:47 +0000 (09:48 +0100)
commitb6a68b97af23cc75781bed38221ce73144ac2e39
treef2279ab2f8e6f84a03de7bc36f2452efca091c06
parent9e1ff307c779ce1f0f810c7ecce3d95bbae40896
KVM: arm64: Allow KVM to be disabled from the command line

Although KVM can be compiled out of the kernel, it cannot be disabled
at runtime. Allow this possibility by introducing a new mode that
will prevent KVM from initialising.

This is useful in the (limited) circumstances where you don't want
KVM to be available (what is wrong with you?), or when you want
to install another hypervisor instead (good luck with that).

Reviewed-by: David Brazdil <dbrazdil@google.com>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Andrew Scull <ascull@google.com>
Link: https://lore.kernel.org/r/20211001170553.3062988-1-maz@kernel.org
Documentation/admin-guide/kernel-parameters.txt
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c