arm: KVM: Add HYP async abort handler
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Sep 2016 13:02:10 +0000 (14:02 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 8 Sep 2016 10:53:00 +0000 (12:53 +0200)
If we've exited the guest because it has triggered an asynchronous
abort, a possible course of action is to let it know it screwed up
by giving it a Virtual Abort to chew on.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/handle_exit.c

index 3f1ef0dbc899182cae378773064c67e2e2289eb3..863fdf42668e0cc574806fe4046a3e9168afd57e 100644 (file)
@@ -160,6 +160,9 @@ int handle_exit(struct kvm_vcpu *vcpu, struct kvm_run *run,
                exit_handler = kvm_get_exit_handler(vcpu);
 
                return exit_handler(vcpu, run);
+       case ARM_EXCEPTION_DATA_ABORT:
+               kvm_inject_vabt(vcpu);
+               return 1;
        default:
                kvm_pr_unimpl("Unsupported exception type: %d",
                              exception_index);