]> 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)
commitd4a4d3b3cc2a84dd40c3344704aa59cbdeaf4b1c
tree6cb53e2890c526bff4b1e53776ce83bce1247038
parentfdb37dc705ab20effba574c3cf67f64c734fa2a6
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