OSDN Git Service

KVM/MIPS32: Entry point for trampolining to the guest and trap handlers.
authorSanjay Lal <sanjayl@kymasys.com>
Thu, 22 Nov 2012 02:34:01 +0000 (18:34 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 8 May 2013 01:55:34 +0000 (03:55 +0200)
commitb680f70fc111101d0b24b2c9f37453998622da1a
tree7de088f5abbff2a8aaa99921667016e0503affa5
parent740765ce45689a4eca21914f8b2cc872a970f53f
KVM/MIPS32: Entry point for trampolining to the guest and trap handlers.

- __kvm_mips_vcpu_run: main entry point to enter guest, we save kernel context, load
  up guest context from and ERET to guest context.
- mips32_exception: L1 exception handler(s), save k0/k1 and jump to main handlers.
- mips32_GuestException: Generic exception handlers for exceptions/interrupts while in
  guest context.  Save guest context, restore some kernel context and jump to
  main 'C' handler: kvm_mips_handle_exit()

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_locore.S [new file with mode: 0644]