Re: [PATCH 2/3] KVM: arm64: Handle PtrAuth traps early

2020-06-04 Thread Mark Rutland
On Thu, Jun 04, 2020 at 02:33:53PM +0100, Marc Zyngier wrote: > The current way we deal with PtrAuth is a bit heavy handed: > > - We forcefully save the host's keys on each vcpu_load() > - Handling the PtrAuth trap forces us to go all the way back > to the exit handling code to just set the HCR

[PATCH 2/3] KVM: arm64: Handle PtrAuth traps early

2020-06-04 Thread Marc Zyngier
The current way we deal with PtrAuth is a bit heavy handed: - We forcefully save the host's keys on each vcpu_load() - Handling the PtrAuth trap forces us to go all the way back to the exit handling code to just set the HCR bits Overall, this is pretty heavy handed. A better approach would be