]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Don't save/restore lo/hi for r6
authorJames Hogan <james.hogan@imgtec.com>
Mon, 4 Jul 2016 18:35:11 +0000 (19:35 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jul 2016 14:09:14 +0000 (16:09 +0200)
commitc366a33be7e0b043f795d560da008b69b9452ef2
treebe4f2ba4705ed81862392378fb220d6d0b840fd1
parentf6ced77805ec7c9afa0e10611854c46bec413da4
MIPS: KVM: Don't save/restore lo/hi for r6

MIPSr6 doesn't have lo/hi registers, so don't bother saving or
restoring them, and don't expose them to userland with the KVM ioctl
interface either.

In fact the lo/hi registers aren't callee saved in the MIPS ABIs anyway,
so there is no need to preserve the host lo/hi values at all when
transitioning to and from the guest (which happens via a function call).

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