]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Add CP0_HWREna KVM register access
authorJames Hogan <james.hogan@imgtec.com>
Thu, 29 May 2014 09:16:31 +0000 (10:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 May 2014 11:01:03 +0000 (13:01 +0200)
commit47e3a8b404b48a1bc3f6dbad8ce407f9bebcc90e
treeb0f8c2c644ea12fb68fea7e6e33e4813d873bfc0
parent8669e1d612cc3fa851170f82b3264ae9729a39de
MIPS: KVM: Add CP0_HWREna KVM register access

Implement KVM_{GET,SET}_ONE_REG ioctl based access to the guest CP0
HWREna register. This is so that userland can save and restore its
value so that RDHWR instructions don't have to be emulated by the guest.

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