瀏覽代碼

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>
Marc Zyngier 9 年之前
父節點
當前提交
cc325cfc37
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/arm/kvm/handle_exit.c

+ 3 - 0
arch/arm/kvm/handle_exit.c

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