]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Add vcpu_get_regs/vcpu_set_regs callback
authorJames Hogan <james.hogan@imgtec.com>
Mon, 9 Feb 2015 16:35:20 +0000 (16:35 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 27 Mar 2015 21:25:13 +0000 (21:25 +0000)
commitc38974e274bcdbd5f8feb3053f1ede83555382d6
treefd0ca41fd27fd00c94a6d2022ecd04c8266ed9f8
parent091dc53dd676b994cc3c7298febca6174c7e9471
MIPS: KVM: Add vcpu_get_regs/vcpu_set_regs callback

Add a vcpu_get_regs() and vcpu_set_regs() callbacks for loading and
restoring context which may be in hardware registers. This may include
floating point and MIPS SIMD Architecture (MSA) state which may be
accessed directly by the guest (but restored lazily by the hypervisor),
and also dedicated guest registers as provided by the VZ ASE.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
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/kvm/tlb.c
arch/mips/kvm/trap_emul.c