KVM: arm64: Keep nVHE EL2 vector installed
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:20 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 10:08:36 +0000 (10:08 +0000)
commitfa8c3d65538aa11bb117cbf872400d5caa7f340b
tree4ac3ecee4e71171fdd0adbf3607f2b1ea5c1afca
parentd945f8d9ec4ab5b062ce9696761ca3a21de1e64d
KVM: arm64: Keep nVHE EL2 vector installed

KVM by default keeps the stub vector installed and installs the nVHE
vector only briefly for init and later on demand. Change this policy
to install the vector at init and then never uninstall it if the kernel
was given the protected KVM command line parameter.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201202184122.26046-25-dbrazdil@google.com
arch/arm64/kvm/arm.c