KVM: PPC: Make real mode handler generic
authorAlexander Graf <agraf@suse.de>
Thu, 15 Apr 2010 22:11:46 +0000 (00:11 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:18:35 +0000 (12:18 +0300)
commit8c3a4e0b673ba8b274399f575dc803a89a953a66
treeb8fe961f478e03b252487a1cff085e9f71f6a6ac
parent9cc5e9538ab7cbbfb1d7263373d2f58ab2af2bad
KVM: PPC: Make real mode handler generic

The real mode handler code was originally writen for 64 bit Book3S only.
But since we not add 32 bit functionality too, we need to make some tweaks
to it.

This patch basically combines using the "long" access defines and using
fields from the shadow VCPU we just moved there.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/book3s_rmhandlers.S