]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04807573dadeeaeb6be43d72eccc8dcb6d6eb390
treec14d6cbc9c947cdbf69a255f04d44024a79ed6e6
parent53ba8c3b933c053f6d94df4e70bb899c464aff0d
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