]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: PPC: Use accessor functions for GPR access
authorAlexander Graf <agraf@suse.de>
Fri, 8 Jan 2010 01:58:01 +0000 (02:58 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 11 Jan 2010 09:11:27 +0000 (11:11 +0200)
commit55fb1027c1cf9797dbdeab48180da530e81b1c39
treea02b38c07d44e51602f4eb836b7f5031bac59af3
parent21a034d4f0b60c1f27a04ecb7b8a16478292d950
KVM: PPC: Use accessor functions for GPR access

All code in PPC KVM currently accesses gprs in the vcpu struct directly.

While there's nothing wrong with that wrt the current way gprs are stored
and loaded, it doesn't suffice for the PACA acceleration that will follow
in this patchset.

So let's just create little wrapper inline functions that we call whenever
a GPR needs to be read from or written to. The compiled code shouldn't really
change at all for now.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/44x_emulate.c
arch/powerpc/kvm/44x_tlb.c
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_64_emulate.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/booke_emulate.c
arch/powerpc/kvm/e500_emulate.c
arch/powerpc/kvm/e500_tlb.c
arch/powerpc/kvm/emulate.c
arch/powerpc/kvm/powerpc.c