]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Improve indirect svcpu accessors
authorAlexander Graf <agraf@suse.de>
Thu, 15 Apr 2010 22:11:40 +0000 (00:11 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:18:26 +0000 (12:18 +0300)
commit2ec8fe73d71cb0a854fa3b53b2b5c86318877f94
treeba1de6a9d8398d31807756789d015983c4610b21
parent8b80b71eab77e7477a2f5e4ce0bd8ee09afeb8c7
KVM: PPC: Improve indirect svcpu accessors

We already have some inline fuctions we use to access vcpu or svcpu structs,
depending on whether we're on booke or book3s. Since we just put a few more
registers into the svcpu, we also need to make sure the respective callbacks
are available and get used.

So this patch moves direct use of the now in the svcpu struct fields to
inline function calls. While at it, it also moves the definition of those
inline function calls to respective header files for booke and book3s,
greatly improving readability.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/include/asm/kvm_booke.h [new file with mode: 0644]
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_64_mmu.c
arch/powerpc/kvm/book3s_64_mmu_host.c
arch/powerpc/kvm/book3s_emulate.c
arch/powerpc/kvm/book3s_paired_singles.c
arch/powerpc/kvm/emulate.c
arch/powerpc/kvm/powerpc.c