|
@@ -303,3 +303,15 @@ void kvm_inject_pabt(struct kvm_vcpu *vcpu, unsigned long addr)
|
|
|
{
|
|
|
inject_abt(vcpu, true, addr);
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * kvm_inject_vabt - inject an async abort / SError into the guest
|
|
|
+ * @vcpu: The VCPU to receive the exception
|
|
|
+ *
|
|
|
+ * It is assumed that this code is called from the VCPU thread and that the
|
|
|
+ * VCPU therefore is not currently executing guest code.
|
|
|
+ */
|
|
|
+void kvm_inject_vabt(struct kvm_vcpu *vcpu)
|
|
|
+{
|
|
|
+ vcpu_set_hcr(vcpu, vcpu_get_hcr(vcpu) | HCR_VA);
|
|
|
+}
|