]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit245c8789582eee112dcfebf77b77aa0882f0a0d2
tree0bdda99fbefc4fe38e1f5769556e32c8e11834f2
parent3f53332285ff8e20ba501b97fa6202bdd6dcc683
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