KVM: PPC: Simplify kvmppc_load_up_(FPU|VMX|VSX)
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 10:00:47 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:38:01 +0000 (12:38 +0300)
commit964b6411af10fbddc827fdd3887c49f7f5d2bfd3
tree7ee44e0ab94cb66d2dfc7c5ab478c5a717f95d65
parent20a340abd3f7a1ca4d11502ec71d52b4f414326e
KVM: PPC: Simplify kvmppc_load_up_(FPU|VMX|VSX)

We don't need as complex code. I had some thinkos while writing it, figuring
I needed to support PPC32 paths on PPC64 which would have required DR=0, but
everything just runs fine with DR=1.

So let's make the functions simple C call wrappers that reserve some space on
the stack for the respective functions to clobber.

Fixes out-of-RMA-access (and thus guest FPU loading) on the PS3.

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