]> 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)
commit5dec312889600373a718c9a41cd30bba1df12bcb
treefd0ca41fd27fd00c94a6d2022ecd04c8266ed9f8
parent2890ce9f21935e1e59fb2e906e4fc3807c274636
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