]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Track value of cptr_el2 in struct kvm_vcpu_arch
authorFuad Tabba <tabba@google.com>
Tue, 17 Aug 2021 08:11:27 +0000 (09:11 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Aug 2021 10:12:17 +0000 (11:12 +0100)
commit0c0afcc1c2d320959a359a774530651b815069eb
tree6e1671ed2139ea66403066f5c0f7feb7fef0fdc1
parent50ed757edeb1752d2287b0706154095f066530b0
KVM: arm64: Track value of cptr_el2 in struct kvm_vcpu_arch

Track the baseline guest value for cptr_el2 in struct
kvm_vcpu_arch, similar to the other registers that control traps.
Use this value when setting cptr_el2 for the guest.

Currently this value is unchanged (CPTR_EL2_DEFAULT), but future
patches will set trapping bits based on features supported for
the guest.

No functional change intended.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210817081134.2918285-9-tabba@google.com
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/switch.c