KVM: PPC: Convert SPRG[0-4] to shared page
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:47:47 +0000 (14:47 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:45 +0000 (10:50 +0200)
commita73a9599e03eef1324d5aeecaebc1b339d2e1664
tree0bdda99fbefc4fe38e1f5769556e32c8e11834f2
parentde7906c36ca1e22a3e3600e95c6a4e2c1e4e2e9c
KVM: PPC: Convert SPRG[0-4] to shared page

When in kernel mode there are 4 additional registers available that are
simple data storage. Instead of exiting to the hypervisor to read and
write those, we can just share them with the guest using the page.

This patch converts all users of the current field to the shared page.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_para.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/emulate.c