diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2012-10-15 10:33:38 +0100 |
---|---|---|
committer | Christoffer Dall <cdall@cs.columbia.edu> | 2013-03-06 15:48:43 -0800 |
commit | 52d1dba933f601d8d9e6373377377b12d6bcfac0 (patch) | |
tree | 1b3a5ee31d54def99b548cc395fd641d3c9704c3 /arch/arm/include/asm/kvm_emulate.h | |
parent | 1cc287dd081235e02cebd791f1e930ca6f422dcd (diff) | |
download | blackbird-op-linux-52d1dba933f601d8d9e6373377377b12d6bcfac0.tar.gz blackbird-op-linux-52d1dba933f601d8d9e6373377377b12d6bcfac0.zip |
ARM: KVM: abstract HSR_EC_IABT away
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/include/asm/kvm_emulate.h')
-rw-r--r-- | arch/arm/include/asm/kvm_emulate.h | 5 |
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 021a59c46dda..e59f8c0494f3 100644 --- a/arch/arm/include/asm/kvm_emulate.h +++ b/arch/arm/include/asm/kvm_emulate.h @@ -147,6 +147,11 @@ static inline u8 kvm_vcpu_trap_get_class(struct kvm_vcpu *vcpu) return kvm_vcpu_get_hsr(vcpu) >> HSR_EC_SHIFT; } +static inline bool kvm_vcpu_trap_is_iabt(struct kvm_vcpu *vcpu) +{ + return kvm_vcpu_trap_get_class(vcpu) == HSR_EC_IABT; +} + static inline u8 kvm_vcpu_trap_get_fault(struct kvm_vcpu *vcpu) { return kvm_vcpu_get_hsr(vcpu) & HSR_FSC_TYPE; |