]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Convert SRR0 and SRR1 to shared page
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:47:46 +0000 (14:47 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:45 +0000 (10:50 +0200)
commit3f53332285ff8e20ba501b97fa6202bdd6dcc683
treeb7cdfc56e7b9bc66e2a30bda5fb71f975b44de2e
parent447c9e555fb31f5428185aacf2188c95035344b2
KVM: PPC: Convert SRR0 and SRR1 to shared page

The SRR0 and SRR1 registers contain cached values of the PC and MSR
respectively. They get written to by the hypervisor when an interrupt
occurs or directly by the kernel. They are also used to tell the rfi(d)
instruction where to jump to.

Because it only gets touched on defined events that, it's very simple to
share with the guest. Hypervisor and guest both have full r/w access.

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/book3s_emulate.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/booke_emulate.c
arch/powerpc/kvm/emulate.c