KVM/MIPS32: Privileged instruction/target branch emulation.
authorSanjay Lal <sanjayl@kymasys.com>
Thu, 22 Nov 2012 02:34:04 +0000 (18:34 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 8 May 2013 01:55:35 +0000 (03:55 +0200)
commite685c689f3a84e5e24a5867afc5e7b5857efa3e4
tree5771e2db6000f2fc8b125350d4b51424b90400cc
parent9843b030cc951bce4a4d9bec38b5155c96eb1740
KVM/MIPS32: Privileged instruction/target branch emulation.

- The Guest kernel is run in UM and privileged instructions cause a trap.
- If the instruction causing the trap is in a branch delay slot, the branch
  needs to be emulated to figure out the PC @ which the guest will resume
  execution.

Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
Cc: kvm@vger.kernel.org
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kvm/kvm_mips_emul.c [new file with mode: 0644]
arch/mips/kvm/kvm_mips_opcode.h [new file with mode: 0644]