MIPS: KVM: Implement PRid CP0 register access
authorJames Hogan <james.hogan@imgtec.com>
Thu, 26 Jun 2014 12:56:52 +0000 (13:56 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 27 Mar 2015 21:25:08 +0000 (21:25 +0000)
commit1068eaaf2f64ffb44d97fbaa9ff7a4662b76cf9e
tree4b74c86a86bc44a749e9519646fb3bddf3dd6430
parent0a5604272d80c985f87de959f0bb7e36fd53d3c7
MIPS: KVM: Implement PRid CP0 register access

Implement access to the guest Processor Identification CP0 register
using the KVM_GET_ONE_REG and KVM_SET_ONE_REG ioctls. This allows the
owning process to modify and read back the value that is exposed to the
guest in this register.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Documentation/virtual/kvm/api.txt
arch/mips/include/asm/kvm_host.h
arch/mips/kvm/mips.c