diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-09-06 09:02:10 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-09-08 06:53:00 -0400 |
commit | cc325cfc37b5b9e8814d7172e3a6e47d3b098ff1 (patch) | |
tree | 0922586cccd53308f3e21d36c9090f61eba413ef | |
parent | bfb78b5c98d0e6b6dbd9af9cd71e853670a34044 (diff) |
arm: KVM: Add HYP async abort handler
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>
-rw-r--r-- | arch/arm/kvm/handle_exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/kvm/handle_exit.c b/arch/arm/kvm/handle_exit.c index 3f1ef0dbc899..863fdf42668e 100644 --- a/arch/arm/kvm/handle_exit.c +++ b/arch/arm/kvm/handle_exit.c | |||
@@ -160,6 +160,9 @@ int handle_exit(struct kvm_vcpu *vcpu, struct kvm_run *run, | |||
160 | exit_handler = kvm_get_exit_handler(vcpu); | 160 | exit_handler = kvm_get_exit_handler(vcpu); |
161 | 161 | ||
162 | return exit_handler(vcpu, run); | 162 | return exit_handler(vcpu, run); |
163 | case ARM_EXCEPTION_DATA_ABORT: | ||
164 | kvm_inject_vabt(vcpu); | ||
165 | return 1; | ||
163 | default: | 166 | default: |
164 | kvm_pr_unimpl("Unsupported exception type: %d", | 167 | kvm_pr_unimpl("Unsupported exception type: %d", |
165 | exception_index); | 168 | exception_index); |