• James Hogan's avatar
    MIPS: KVM: Add vcpu_get_regs/vcpu_set_regs callback · b86ecb37
    James Hogan authored
    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: default avatarJames 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
    b86ecb37
trap_emul.c 16.7 KB