MIPS: KVM: Check MSA presence at uasm time
authorJames Hogan <james.hogan@imgtec.com>
Thu, 23 Jun 2016 16:34:43 +0000 (17:34 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jul 2016 14:08:51 +0000 (16:08 +0200)
commit38ea7a715d43752e1c53d5a0c3cbab5e321f22f7
tree618dd624c887e5c9a24c0fd3b5ec07832418c7df
parentd37f4038d16273087bdc60387807b90a8c06da7f
MIPS: KVM: Check MSA presence at uasm time

Check for presence of MSA at uasm assembly time rather than at runtime
in the generated KVM host entry code. This optimises the guest exit path
by eliminating the MSA code entirely if not present, and eliminating the
read of Config3.MSAP and conditional branch if MSA is present.

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/kvm/entry.c