]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27572d8ecdae2ef8d027a61e74b9980a1e558af2
treef2279ab2f8e6f84a03de7bc36f2452efca091c06
parent64e4eef3989145850c26208b1f0481f118a4a894
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