OSDN Git Service

MIPS: KVM: Move KVM_{GET,SET}_ONE_REG definitions into kvm_host.h
authorJames Hogan <james.hogan@imgtec.com>
Thu, 29 May 2014 09:16:28 +0000 (10:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 May 2014 11:00:35 +0000 (13:00 +0200)
commit48a3c4e4cd6aa1a2270f3dd2a29e44206e4b2428
tree77f5c42307af73b1347d6cfbe77762b6aac89ccf
parentfb6df0cdf0fe6fcb28fe29b965d9141bceaf00a7
MIPS: KVM: Move KVM_{GET,SET}_ONE_REG definitions into kvm_host.h

Move the KVM_{GET,SET}_ONE_REG MIPS register id definitions out of
kvm_mips.c to kvm_host.h so that they can be shared between multiple
source files. This allows register access to be indirected depending on
the underlying implementation (trap & emulate or VZ).

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