Re: [PATCH 3/5] arm64: KVM: vgic-v2: Add the GICV emulation infrastructure

2016-09-01 Thread Christoffer Dall
On Thu, Sep 01, 2016 at 03:28:36PM +0100, Marc Zyngier wrote: > On 01/09/16 13:46, Christoffer Dall wrote: > > On Fri, Aug 19, 2016 at 01:38:13PM +0100, Marc Zyngier wrote: > >> In order to efficiently perform the GICV access on behalf of the > >> guest, we need to be able to do avoid going back

Re: [PATCH 3/5] arm64: KVM: vgic-v2: Add the GICV emulation infrastructure

2016-09-01 Thread Peter Maydell
On 1 September 2016 at 15:28, Marc Zyngier wrote: > On 01/09/16 13:46, Christoffer Dall wrote: >> On Fri, Aug 19, 2016 at 01:38:13PM +0100, Marc Zyngier wrote: >>> +__skip_instr(vcpu); >> >> does this interact in any amusing way with single-step guest

Re: [PATCH 3/5] arm64: KVM: vgic-v2: Add the GICV emulation infrastructure

2016-09-01 Thread Marc Zyngier
On 01/09/16 13:46, Christoffer Dall wrote: > On Fri, Aug 19, 2016 at 01:38:13PM +0100, Marc Zyngier wrote: >> In order to efficiently perform the GICV access on behalf of the >> guest, we need to be able to do avoid going back all the way to > > s/do// > >> the host kernel. >> >> For this, we

[PATCH 3/5] arm64: KVM: vgic-v2: Add the GICV emulation infrastructure

2016-08-19 Thread Marc Zyngier
In order to efficiently perform the GICV access on behalf of the guest, we need to be able to do avoid going back all the way to the host kernel. For this, we introduce a new hook in the world switch code, conveniently placed just after populating the fault info. At that point, we only have