]> git.karo-electronics.de Git - karo-tx-linux.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 <cdall@cs.columbia.edu>
Tue, 28 May 2013 02:36:14 +0000 (19:36 -0700)
commit44156a9a57300d067ba178c765b1779a93602825
tree06c7bfbb8aa9923d4c892abc0e22f180f676937c
parent3f803bdba48f4b8c459ae3980672a9fc8f10ab76
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