Skip to content
Commit 655169ce authored by Marc Zyngier's avatar Marc Zyngier
Browse files

KVM: arm64: Check HCR_EL2 instead of shadow copy to swap PtrAuth registers



When save/restoring PtrAuth registers between host and guest, it is
pretty useless to fetch the in-memory state, while we have the right
state in the HCR_EL2 system register. Use that instead.

Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent aff7cce0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment