]> 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>
Thu, 16 Aug 2012 11:14:07 +0000 (13:14 +0200)
commite9908a44fe2cb5a2178fab44f4cefeb8cca4f04a
treee9061dae4d0b8e49cb493177cb946944de738aec
parent8e968e71af28eac4f3648b37b245943478cdefac
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