summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/kvm_emulate.h
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2012-09-18 14:37:28 +0400
committerChristoffer Dall <cdall@cs.columbia.edu>2013-03-07 03:48:42 +0400
commitb37670b0f37d8015d0d428e6a63bd07397430a2f (patch)
tree8bc2b42b3be447effbc077ff832e139cd38d81e2 /arch/arm/include/asm/kvm_emulate.h
parent78abfcde49e0e454cabf8e56cd4c1591752e2706 (diff)
downloadlinux-b37670b0f37d8015d0d428e6a63bd07397430a2f.tar.xz
ARM: KVM: abstract S1TW abort detection away
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
Diffstat (limited to 'arch/arm/include/asm/kvm_emulate.h')
-rw-r--r--arch/arm/include/asm/kvm_emulate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/kvm_emulate.h b/arch/arm/include/asm/kvm_emulate.h
index 2d1c5854243b..6b43653865fb 100644
--- a/arch/arm/include/asm/kvm_emulate.h
+++ b/arch/arm/include/asm/kvm_emulate.h
@@ -115,4 +115,9 @@ static inline bool kvm_vcpu_dabt_isextabt(struct kvm_vcpu *vcpu)
return kvm_vcpu_get_hsr(vcpu) & HSR_DABT_EA;
}
+static inline bool kvm_vcpu_dabt_iss1tw(struct kvm_vcpu *vcpu)
+{
+ return kvm_vcpu_get_hsr(vcpu) & HSR_DABT_S1PTW;
+}
+
#endif /* __ARM_KVM_EMULATE_H__ */