Re: [PATCH RESEND v2] arm/arm64: KVM: set right LR register value for 32 bit guest when inject abort

2017-10-18 Thread Christoffer Dall
On Wed, Oct 18, 2017 at 11:19:30AM +0100, Marc Zyngier wrote: > On 17/10/17 15:23, Dongjiu Geng wrote: > > When a exception is trapped to EL2, hardware uses ELR_ELx to hold > > the current fault instruction address. If KVM wants to inject a > > abort to 32 bit guest, it needs to set the LR registe

Re: [PATCH RESEND v2] arm/arm64: KVM: set right LR register value for 32 bit guest when inject abort

2017-10-18 Thread Marc Zyngier
On 17/10/17 15:23, Dongjiu Geng wrote: > When a exception is trapped to EL2, hardware uses ELR_ELx to hold > the current fault instruction address. If KVM wants to inject a > abort to 32 bit guest, it needs to set the LR register for the > guest to emulate this abort happened in the guest. Because

Re: [PATCH RESEND v2] arm/arm64: KVM: set right LR register value for 32 bit guest when inject abort

2017-10-18 Thread Christoffer Dall
On Tue, Oct 17, 2017 at 10:23:49PM +0800, Dongjiu Geng wrote: > When a exception is trapped to EL2, hardware uses ELR_ELx to hold > the current fault instruction address. If KVM wants to inject a > abort to 32 bit guest, it needs to set the LR register for the > guest to emulate this abort happene

[PATCH RESEND v2] arm/arm64: KVM: set right LR register value for 32 bit guest when inject abort

2017-10-17 Thread Dongjiu Geng
When a exception is trapped to EL2, hardware uses ELR_ELx to hold the current fault instruction address. If KVM wants to inject a abort to 32 bit guest, it needs to set the LR register for the guest to emulate this abort happened in the guest. Because ARM32 architecture is pipelined execution, so