]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d2314ba1b36bf3ddef4a9cbd0b3a4e1773933da
treee19cfee3ff6878cd868fbe1083d52fe3ddd26bbf
parent35aea9a4209e3bac9e487f18bdea783b1d3fbc33
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