KVM: PPC: Magic Page Book3s support
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:47:54 +0000 (14:47 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:48 +0000 (10:50 +0200)
commite8508940a88691ad3d1c46608cd968eb4be9cbc5
treec14d6cbc9c947cdbf69a255f04d44024a79ed6e6
parentbeb03f14da9ceff76ff08cbb8af064b52dc21f7e
KVM: PPC: Magic Page Book3s support

We need to override EA as well as PA lookups for the magic page. When the guest
tells us to project it, the magic page overrides any guest mappings.

In order to reflect that, we need to hook into all the MMU layers of KVM to
force map the magic page if necessary.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_32_mmu.c
arch/powerpc/kvm/book3s_32_mmu_host.c
arch/powerpc/kvm/book3s_64_mmu.c
arch/powerpc/kvm/book3s_64_mmu_host.c