summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2022-11-10 22:02:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-20 13:35:08 +0300
commit361b02e681817bae09625ad38b74996efc6c37f8 (patch)
treea07c79b7c60bbd74d481ac8c088e7e3bab0c9de0 /ipc
parent8b9c64942ada229f52fe6f1b537a50f88b3c2673 (diff)
downloadlinux-361b02e681817bae09625ad38b74996efc6c37f8.tar.xz
KVM: arm64: Initialise hypervisor copies of host symbols unconditionally
[ Upstream commit 6c165223e9a6384aa1e934b90f2650e71adb972a ] The nVHE object at EL2 maintains its own copies of some host variables so that, when pKVM is enabled, the host cannot directly modify the hypervisor state. When running in normal nVHE mode, however, these variables are still mirrored at EL2 but are not initialised. Initialise the hypervisor symbols from the host copies regardless of pKVM, ensuring that any reference to this data at EL2 with normal nVHE will return a sensibly initialised value. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221110190259.26861-16-will@kernel.org Stable-dep-of: e81625218bf7 ("KVM: arm64: Advertise ID_AA64PFR0_EL1.CSV2/3 to protected VMs") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions