From: Christian Ehrhardt <ehr...@li...>
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 <ehr...@li...>
---
[diffstat]
[diff]
booke_guest.c | 5 +++++
1 files changed, 5 insertions(+)
diff --git a/arch/powerpc/kvm/booke_guest.c b/arch/powerpc/kvm/booke_guest.c
--- a/arch/powerpc/kvm/booke_guest.c
+++ b/arch/powerpc/kvm/booke_guest.c
@@ -340,6 +340,11 @@ int kvmppc_handle_exit(struct kvm_run *r
default:
BUG();
}
+ break;
+
+ case BOOKE_INTERRUPT_FP_UNAVAIL:
+ kvmppc_queue_exception(vcpu, exit_nr);
+ r = RESUME_GUEST;
break;
case BOOKE_INTERRUPT_DATA_STORAGE:
|