MIPS: KVM: Add CP0_UserLocal KVM register access
authorJames Hogan <james.hogan@imgtec.com>
Thu, 29 May 2014 09:16:30 +0000 (10:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 May 2014 11:00:57 +0000 (13:00 +0200)
commit7767b7d2f7c4d81f8c6710af1f5cb3fc038fa7be
treea416a1967b551bc8a5361b518854c73401b96d71
parentf8be02dacaca49ac442d03a178d4290a083c3922
MIPS: KVM: Add CP0_UserLocal KVM register access

Implement KVM_{GET,SET}_ONE_REG ioctl based access to the guest CP0
UserLocal register. This is so that userland can save and restore its
value.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: kvm@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: David Daney <david.daney@cavium.com>
Cc: Sanjay Lal <sanjayl@kymasys.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h
arch/mips/kvm/kvm_mips.c