Re: [Android-virt] [PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-13 Thread Christoffer Dall
On Mon, Feb 13, 2012 at 5:13 AM, Marc Zyngier wrote: > On 12/02/12 01:12, Christoffer Dall wrote: >> On Sat, Feb 11, 2012 at 10:33 AM, Antonios Motakis >> wrote: >>> On 02/11/2012 06:35 PM, Christoffer Dall wrote: On Sat, Feb 11, 2012 at 7:00 AM, Antonios Motakis  wrote: > >>>

Re: [Android-virt] [PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-13 Thread Marc Zyngier
On 12/02/12 01:12, Christoffer Dall wrote: > On Sat, Feb 11, 2012 at 10:33 AM, Antonios Motakis > wrote: >> On 02/11/2012 06:35 PM, Christoffer Dall wrote: >>> >>> On Sat, Feb 11, 2012 at 7:00 AM, Antonios Motakis >>> wrote: On 02/10/2012 11:22 PM, Marc Zyngier wrote: > > +ENTR

Re: [Android-virt] [PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-12 Thread Alexander Graf
On 12.02.2012, at 02:12, Christoffer Dall wrote: > On Sat, Feb 11, 2012 at 10:33 AM, Antonios Motakis > wrote: >> On 02/11/2012 06:35 PM, Christoffer Dall wrote: >>> >>> On Sat, Feb 11, 2012 at 7:00 AM, Antonios Motakis >>> wrote: On 02/10/2012 11:22 PM, Marc Zyngier wrote: >

Re: [Android-virt] [PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-11 Thread Christoffer Dall
On Sat, Feb 11, 2012 at 10:33 AM, Antonios Motakis wrote: > On 02/11/2012 06:35 PM, Christoffer Dall wrote: >> >> On Sat, Feb 11, 2012 at 7:00 AM, Antonios Motakis >>  wrote: >>> >>> On 02/10/2012 11:22 PM, Marc Zyngier wrote: +ENTRY(__kvm_tlb_flush_vmid) +       hvc     #0        

Re: [Android-virt] [PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-11 Thread Antonios Motakis
On 02/11/2012 06:35 PM, Christoffer Dall wrote: On Sat, Feb 11, 2012 at 7:00 AM, Antonios Motakis wrote: On 02/10/2012 11:22 PM, Marc Zyngier wrote: +ENTRY(__kvm_tlb_flush_vmid) + hvc #0 @ Switch to Hyp mode + push{r2, r3} + ldrdr2, r3, [r0,

Re: [Android-virt] [PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-11 Thread Christoffer Dall
On Sat, Feb 11, 2012 at 7:00 AM, Antonios Motakis wrote: > On 02/10/2012 11:22 PM, Marc Zyngier wrote: >> >> +ENTRY(__kvm_tlb_flush_vmid) >> +       hvc     #0                      @ Switch to Hyp mode >> +       push    {r2, r3} >> >> +       ldrd    r2, r3, [r0, #KVM_VTTBR] >> +       mcrr    p1

Re: [Android-virt] [PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-11 Thread Antonios Motakis
On 02/10/2012 11:22 PM, Marc Zyngier wrote: +ENTRY(__kvm_tlb_flush_vmid) + hvc #0 @ Switch to Hyp mode + push{r2, r3} + ldrdr2, r3, [r0, #KVM_VTTBR] + mcrrp15, 6, r2, r3, c2 @ Write VTTBR + isb + mcr p15, 0, r0, c8

Re: [PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-10 Thread Christoffer Dall
On Fri, Feb 10, 2012 at 2:22 PM, Marc Zyngier wrote: > Add the necessary infrastructure to handle MMU notifiers on KVM/ARM. > As we don't have shadow page tables, the implementation is actually very > simple. The only supported operation is kvm_unmap_hva(), where we remove > the HVA from the 2nd s

[PATCH RFC v2 3/3] ARM: KVM: Add support for MMU notifiers

2012-02-10 Thread Marc Zyngier
Add the necessary infrastructure to handle MMU notifiers on KVM/ARM. As we don't have shadow page tables, the implementation is actually very simple. The only supported operation is kvm_unmap_hva(), where we remove the HVA from the 2nd stage translation. All other hooks are NOPs. Signed-off-by: Ma