]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteecc250671362425ce491d4eb46fc2a39911d9de
tree5771e2db6000f2fc8b125350d4b51424b90400cc
parent738337bc109f1ce9815dc509bdd7f95386a61bc7
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]