]> git.baikalelectronics.ru Git - kernel.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:38:50 +0000 (23:38 +0200)
commit7bf187df3b1695069882ce28e2e16ca7791236fd
tree1cfdddd3d9839cea56cc6a6a38a148c3236d4e25
parent808aa4c1d0f4501801ad2c11580cfcf92d92323d
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