]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: PPC: BookE: Support FPU on non-hv systems
authorAlexander Graf <agraf@suse.de>
Thu, 16 Aug 2012 11:10:16 +0000 (13:10 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 5 Oct 2012 21:34:01 +0000 (23:34 +0200)
commitd23c4446cd8e70b85b232e437276c130f6b53bff
tree1cfdddd3d9839cea56cc6a6a38a148c3236d4e25
parent92ccd4e6ec7aff7de45867871e35f803cbac3921
KVM: PPC: BookE: Support FPU on non-hv systems

When running on HV aware hosts, we can not trap when the guest sets the FP
bit, so we just let it do so when it wants to, because it has full access to
MSR.

For non-HV aware hosts with an FPU (like 440), we need to also adjust the
shadow MSR though. Otherwise the guest gets an FP unavailable trap even when
it really enabled the FP bit in MSR.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/booke.c