diff options
Diffstat (limited to 'arch/arm/kvm/emulate.c')
-rw-r--r-- | arch/arm/kvm/emulate.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/kvm/emulate.c b/arch/arm/kvm/emulate.c index ff9acd1b027b..0064b86a2c87 100644 --- a/arch/arm/kvm/emulate.c +++ b/arch/arm/kvm/emulate.c | |||
@@ -303,3 +303,15 @@ void kvm_inject_pabt(struct kvm_vcpu *vcpu, unsigned long addr) | |||
303 | { | 303 | { |
304 | inject_abt(vcpu, true, addr); | 304 | inject_abt(vcpu, true, addr); |
305 | } | 305 | } |
306 | |||
307 | /** | ||
308 | * kvm_inject_vabt - inject an async abort / SError into the guest | ||
309 | * @vcpu: The VCPU to receive the exception | ||
310 | * | ||
311 | * It is assumed that this code is called from the VCPU thread and that the | ||
312 | * VCPU therefore is not currently executing guest code. | ||
313 | */ | ||
314 | void kvm_inject_vabt(struct kvm_vcpu *vcpu) | ||
315 | { | ||
316 | vcpu_set_hcr(vcpu, vcpu_get_hcr(vcpu) | HCR_VA); | ||
317 | } | ||