]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kvm: arm64: Duplicate arm64_ssbd_callback_required for nVHE hyp
authorDavid Brazdil <dbrazdil@google.com>
Tue, 22 Sep 2020 20:49:07 +0000 (21:49 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 30 Sep 2020 07:37:13 +0000 (08:37 +0100)
commitdf4c8214a18d202fa0ec221a001f640e020f7e44
tree7f4227456644dd41451490fd45082a4e7f9ab30c
parent572494995bc3d282336bfd8162741929402910b9
kvm: arm64: Duplicate arm64_ssbd_callback_required for nVHE hyp

Hyp keeps track of which cores require SSBD callback by accessing a
kernel-proper global variable. Create an nVHE symbol of the same name
and copy the value from kernel proper to nVHE as KVM is being enabled
on a core.

Done in preparation for separating percpu memory owned by kernel
proper and nVHE.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200922204910.7265-8-dbrazdil@google.com
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kernel/image-vars.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/switch.c