Re: [RFC PATCH] kvm: arm64: handle single-step of hyp emulated mmio instructions

2017-11-23 Thread Christoffer Dall
Replying to myself here, because I'm an idiot... On Wed, Nov 22, 2017 at 09:41:58PM +0100, Christoffer Dall wrote: [...] > > > case ARM_EXCEPTION_TRAP: > > return handle_trap_exceptions(vcpu, run); > > case ARM_EXCEPTION_HYP_GONE: > > diff --git a/arch/arm64/kvm/hyp/switch.c

Re: [RFC PATCH] kvm: arm64: handle single-step of hyp emulated mmio instructions

2017-11-22 Thread Christoffer Dall
On Wed, Nov 22, 2017 at 05:07:46PM +, Alex Bennée wrote: > There is a fast-path of MMIO emulation inside hyp mode. The handling > of single-step is broadly the same as kvm_arm_handle_step_debug() > except we just setup ESR/HSR so handle_exit() does the correct thing > as we exit. > > For the c

[RFC PATCH] kvm: arm64: handle single-step of hyp emulated mmio instructions

2017-11-22 Thread Alex Bennée
There is a fast-path of MMIO emulation inside hyp mode. The handling of single-step is broadly the same as kvm_arm_handle_step_debug() except we just setup ESR/HSR so handle_exit() does the correct thing as we exit. For the case of an emulated illegal access causing an SError we signal to handle_e