summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/mmio.c
diff options
context:
space:
mode:
authorMarc Zyngier2012-09-18 12:36:16 +0200
committerChristoffer Dall2013-03-07 00:48:42 +0100
commit78abfcde49e0e454cabf8e56cd4c1591752e2706 (patch)
tree52a67b34e5038808f5d46243867c10cee6ac20e0 /arch/arm/kvm/mmio.c
parentARM: KVM: abstract HSR_SRT_{MASK,SHIFT} away (diff)
downloadkernel-qcow2-linux-78abfcde49e0e454cabf8e56cd4c1591752e2706.tar.gz
kernel-qcow2-linux-78abfcde49e0e454cabf8e56cd4c1591752e2706.tar.xz
kernel-qcow2-linux-78abfcde49e0e454cabf8e56cd4c1591752e2706.zip
ARM: KVM: abstract (and fix) external abort detection away
Bit 8 is cache maintenance, bit 9 is external abort. 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 586063d0697a..e4682a3af313 100644
--- a/arch/arm/kvm/mmio.c
+++ b/arch/arm/kvm/mmio.c
@@ -65,7 +65,7 @@ static int decode_hsr(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
unsigned long rt, len;
bool is_write, sign_extend;
- if ((kvm_vcpu_get_hsr(vcpu) >> 8) & 1) {
+ if (kvm_vcpu_dabt_isextabt(vcpu)) {
/* cache operation on I/O addr, tell guest unsupported */
kvm_inject_dabt(vcpu, kvm_vcpu_get_hfar(vcpu));
return 1;