]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: PPC: E500: Implement MMU notifiers
authorAlexander Graf <agraf@suse.de>
Mon, 30 Jul 2012 22:19:50 +0000 (00:19 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 5 Oct 2012 21:33:31 +0000 (23:33 +0200)
commite1026050c16d028b96ee37624caf80275f3a4da0
tree8e75005b5496a8418537f29a6e01e627498caf29
parent213f845f86572c2d53af92f972a49f8a43a0513e
KVM: PPC: E500: Implement MMU notifiers

The e500 target has lived without mmu notifiers ever since it got
introduced, but fails for the user space check on them with hugetlbfs.

So in order to get that one working, implement mmu notifiers in a
reasonably dumb fashion and be happy. On embedded hardware, we almost
never end up with mmu notifier calls, since most people don't overcommit.

Signed-off-by: Alexander Graf <agraf@suse.de>
---

v1 -> v2:

  - drop refcount for in-use pages
  - mark pages dirty at mapping time, not unmapping time
  - drop hva_to_memslot usage
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/Kconfig
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/e500_tlb.c