ARM: KVM: don't special case PC when doing an MMIO
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 14 May 2013 11:11:38 +0000 (12:11 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 26 Jun 2013 17:50:03 +0000 (10:50 -0700)
commit8734f16fb2aa4ff0bb57ad6532661a38bc8ff957
treee19cfee3ff6878cd868fbe1083d52fe3ddd26bbf
parentdac288f7b38a7439502b77dabcdf8a9a5c4ae721
ARM: KVM: don't special case PC when doing an MMIO

Admitedly, reading a MMIO register to load PC is very weird.
Writing PC to a MMIO register is probably even worse. But
the architecture doesn't forbid any of these, and injecting
a Prefetch Abort is the wrong thing to do anyway.

Remove this check altogether, and let the adventurous guest
wander into LaLaLand if they feel compelled to do so.

Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/mmio.c