]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Relative branch to common exit handler
authorJames Hogan <james.hogan@imgtec.com>
Thu, 23 Jun 2016 16:34:46 +0000 (17:34 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jul 2016 14:08:55 +0000 (16:08 +0200)
commit2355944ac899ac9ddb44958b05172b888e060ceb
tree263a795bad14def08539b3c8947ed5f176b4f52d
parent2a16eb95eb1b01d18f2e67c471d83f4c03c24b86
MIPS: KVM: Relative branch to common exit handler

Use a relative branch to get from the individual exception vectors to
the common guest exit handler, rather than loading the address of the
exit handler and jumping to it.

This is made easier due to the fact we are now generating the entry code
dynamically. This will also allow the exception code to be further
reduced in future patches.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim KrÄmář <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h
arch/mips/kvm/entry.c
arch/mips/kvm/mips.c