]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Interpret SDR1 as HVA in PAPR mode
authorAlexander Graf <agraf@suse.de>
Mon, 8 Aug 2011 13:06:55 +0000 (15:06 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:21 +0000 (19:52 +0300)
commitb5b56ed1c6c2869e44a1e6ab45bc033dbbae26b4
tree6cb53e2890c526bff4b1e53776ce83bce1247038
parent1734a4d3eaa8b35e321ce7a84737d7976f0509a3
KVM: PPC: Interpret SDR1 as HVA in PAPR mode

When running a PAPR guest, the guest is not allowed to set SDR1 - instead
the HTAB information is held in internal hypervisor structures. But all of
our current code relies on SDR1 and walking the HTAB like on real hardware.

So in order to not be too intrusive, we simply set SDR1 to the HTAB we hold
in host memory. That way we can keep the HTAB in user space, but use it from
kernel space to map the guest.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_64_mmu.c