]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/powerpc/kvm/booke.c
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)
commit7a08c2740f07fb8c3769d1f137721835ead7652f
tree1cfdddd3d9839cea56cc6a6a38a148c3236d4e25
parentceb985f9d18cba2efdef08b8d31751c2c2b20d77
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