Re: [PATCH v2 06/21] arm64: KVM: VHE: Patch out use of HVC

2016-02-02 Thread Christoffer Dall
On Mon, Feb 01, 2016 at 05:28:32PM +, Marc Zyngier wrote: > On 01/02/16 17:08, Ard Biesheuvel wrote: > > On 1 February 2016 at 17:20, Marc Zyngier wrote: > >> On 01/02/16 15:36, Catalin Marinas wrote: > >>> On Mon, Feb 01, 2016 at 01:34:16PM +, Marc Zyngier wrote: >

Re: [PATCH v2 06/21] arm64: KVM: VHE: Patch out use of HVC

2016-02-01 Thread Marc Zyngier
On 01/02/16 13:16, Christoffer Dall wrote: > On Mon, Jan 25, 2016 at 03:53:40PM +, Marc Zyngier wrote: >> With VHE, the host never issues an HVC instruction to get into the >> KVM code, as we can simply branch there. >> >> Use runtime code patching to simplify things a bit. >> >>

Re: [PATCH v2 06/21] arm64: KVM: VHE: Patch out use of HVC

2016-02-01 Thread Marc Zyngier
On 01/02/16 17:08, Ard Biesheuvel wrote: > On 1 February 2016 at 17:20, Marc Zyngier wrote: >> On 01/02/16 15:36, Catalin Marinas wrote: >>> On Mon, Feb 01, 2016 at 01:34:16PM +, Marc Zyngier wrote: On 01/02/16 13:16, Christoffer Dall wrote: > On Mon, Jan 25,

Re: [PATCH v2 06/21] arm64: KVM: VHE: Patch out use of HVC

2016-02-01 Thread Christoffer Dall
On Mon, Feb 01, 2016 at 01:34:16PM +, Marc Zyngier wrote: > On 01/02/16 13:16, Christoffer Dall wrote: > > On Mon, Jan 25, 2016 at 03:53:40PM +, Marc Zyngier wrote: > >> With VHE, the host never issues an HVC instruction to get into the > >> KVM code, as we can simply branch there. > >> >

Re: [PATCH v2 06/21] arm64: KVM: VHE: Patch out use of HVC

2016-02-01 Thread Marc Zyngier
On 01/02/16 15:36, Catalin Marinas wrote: > On Mon, Feb 01, 2016 at 01:34:16PM +, Marc Zyngier wrote: >> On 01/02/16 13:16, Christoffer Dall wrote: >>> On Mon, Jan 25, 2016 at 03:53:40PM +, Marc Zyngier wrote: diff --git a/arch/arm64/kvm/hyp/hyp-entry.S

Re: [PATCH v2 06/21] arm64: KVM: VHE: Patch out use of HVC

2016-02-01 Thread Ard Biesheuvel
On 1 February 2016 at 17:20, Marc Zyngier wrote: > On 01/02/16 15:36, Catalin Marinas wrote: >> On Mon, Feb 01, 2016 at 01:34:16PM +, Marc Zyngier wrote: >>> On 01/02/16 13:16, Christoffer Dall wrote: On Mon, Jan 25, 2016 at 03:53:40PM +, Marc Zyngier wrote: