summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/mmio.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2012-09-18 12:37:28 +0200
committerChristoffer Dall <cdall@cs.columbia.edu>2013-03-07 00:48:42 +0100
commitb37670b0f37d8015d0d428e6a63bd07397430a2f (patch)
tree8bc2b42b3be447effbc077ff832e139cd38d81e2 /arch/arm/kvm/mmio.c
parentARM: KVM: abstract (and fix) external abort detection away (diff)
downloadlinux-b37670b0f37d8015d0d428e6a63bd07397430a2f.tar.xz
linux-b37670b0f37d8015d0d428e6a63bd07397430a2f.zip
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/kvm/mmio.c')
-rw-r--r--arch/arm/kvm/mmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kvm/mmio.c b/arch/arm/kvm/mmio.c
index e4682a3af313..6495c1ca7bfa 100644
--- a/arch/arm/kvm/mmio.c
+++ b/arch/arm/kvm/mmio.c
@@ -71,7 +71,7 @@ static int decode_hsr(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
return 1;
}
- if ((kvm_vcpu_get_hsr(vcpu) >> 7) & 1) {
+ if (kvm_vcpu_dabt_iss1tw(vcpu)) {
/* page table accesses IO mem: tell guest to fix its TTBR */
kvm_inject_dabt(vcpu, kvm_vcpu_get_hfar(vcpu));
return 1;