From: Christian Ehrhardt Date: Tue, 29 Apr 2008 16:18:23 +0000 (+0200) Subject: KVM: ppc: deliver INTERRUPT_FP_UNAVAIL to the guest X-Git-Tag: v2.6.26-rc2~80^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=de368dceb33c3c068dbde1407aff75cd8e126f04;p=linux-2.6-omap-h63xx.git KVM: ppc: deliver INTERRUPT_FP_UNAVAIL to the guest This patch adds the delivery of INTERRUPT_FP_UNAVAIL exceptions to the guest. It's needed if a guest uses ppc binaries using the Floating point instructions. Signed-off-by: Christian Ehrhardt Acked-by: Hollis Blanchard Signed-off-by: Avi Kivity --- diff --git a/arch/powerpc/kvm/booke_guest.c b/arch/powerpc/kvm/booke_guest.c index b3db6f4576a..712d89a28c4 100644 --- a/arch/powerpc/kvm/booke_guest.c +++ b/arch/powerpc/kvm/booke_guest.c @@ -339,6 +339,11 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, } break; + case BOOKE_INTERRUPT_FP_UNAVAIL: + kvmppc_queue_exception(vcpu, exit_nr); + r = RESUME_GUEST; + break; + case BOOKE_INTERRUPT_DATA_STORAGE: vcpu->arch.dear = vcpu->arch.fault_dear; vcpu->arch.esr = vcpu->arch.fault_esr;