MIPS: KVM: Clean up register definitions a little
authorJames Hogan <james.hogan@imgtec.com>
Tue, 2 Dec 2014 15:47:04 +0000 (15:47 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 27 Mar 2015 21:25:10 +0000 (21:25 +0000)
commit7bd4acec42670a18b023392db6f4bfaa4dee179e
treec74421a4ba15d6020cdbaa88142830ef56512942
parent58a115bcec06f2de26923bc13e88cb73b780ae41
MIPS: KVM: Clean up register definitions a little

Clean up KVM_GET_ONE_REG / KVM_SET_ONE_REG register definitions for
MIPS, to prepare for adding a new group for FPU & MSA vector registers.

Definitions are added for common bits in each group of registers, e.g.
KVM_REG_MIPS_CP0 = KVM_REG_MIPS | 0x10000, for the coprocessor 0
registers.

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
arch/mips/include/asm/kvm_host.h
arch/mips/include/uapi/asm/kvm.h