KVM: PPC: Add helpers to call FPU instructions
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 10:00:40 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:35:15 +0000 (12:35 +0300)
commit963cf3dc6342fe60bb78c615884537621abca0bc
treef99b26e7e6eee2235d8fabe448c8bbc6c0a8f24f
parentaba3bd7ffe13fad6c4483b49686ad454a4cb409b
KVM: PPC: Add helpers to call FPU instructions

To emulate paired single instructions, we need to be able to call FPU
operations from within the kernel. Since we don't want gcc to spill
arbitrary FPU code everywhere, we tell it to use a soft fpu.

Since we know we can really call the FPU in safe areas, let's also add
some calls that we can later use to actually execute real world FPU
operations on the host's FPU.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_fpu.h [new file with mode: 0644]
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/kvm/Makefile
arch/powerpc/kvm/fpu.S [new file with mode: 0644]