diff options
author | Alexander Graf <agraf@suse.de> | 2012-07-31 00:19:50 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-10-05 23:38:41 +0200 |
commit | 862d31f788f9a249f7656d02d8d4006e306108ce (patch) | |
tree | 8e75005b5496a8418537f29a6e01e627498caf29 /arch/powerpc/include/asm/kvm_host.h | |
parent | d69c6436443c05a64452054f51a79316297755f4 (diff) | |
download | lwn-862d31f788f9a249f7656d02d8d4006e306108ce.tar.gz lwn-862d31f788f9a249f7656d02d8d4006e306108ce.zip |
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>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_host.h')
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 28e8f5e5c63e..cea9d3aab71c 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h @@ -46,7 +46,8 @@ #define KVM_COALESCED_MMIO_PAGE_OFFSET 1 #endif -#ifdef CONFIG_KVM_BOOK3S_64_HV +#if defined(CONFIG_KVM_BOOK3S_64_HV) || defined(CONFIG_KVM_E500V2) || \ + defined(CONFIG_KVM_E500MC) #include <linux/mmu_notifier.h> #define KVM_ARCH_WANT_MMU_NOTIFIER |