Re: [PATCH 4/4] KVM: arm64: Check HCR_EL2 instead of shadow copy to swap PtrAuth registers

2020-06-15 Thread Mark Rutland
On Mon, Jun 15, 2020 at 09:19:54AM +0100, Marc Zyngier wrote: > 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. > > Signed-off-by: Marc Zyngier It

[PATCH 4/4] KVM: arm64: Check HCR_EL2 instead of shadow copy to swap PtrAuth registers

2020-06-15 Thread Marc Zyngier
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. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/kvm_ptrauth.h | 4 ++-- 1 file changed, 2 insert