summaryrefslogtreecommitdiff
path: root/arch/mips/kvm/emulate.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2015-11-11 14:21:18 (GMT)
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-18 11:25:35 (GMT)
commit002374f371bd02df864cce1fe85d90dc5b292837 (patch)
tree259c68277523eb556c185ff23bcac4a93a2fa256 /arch/mips/kvm/emulate.c
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
downloadlinux-002374f371bd02df864cce1fe85d90dc5b292837.tar.xz
MIPS: KVM: Fix ASID restoration logic
ASID restoration on guest resume should determine the guest execution mode based on the guest Status register rather than bit 30 of the guest PC. Fix the two places in locore.S that do this, loading the guest status from the cop0 area. Note, this assembly is specific to the trap & emulate implementation of KVM, so it doesn't need to check the supervisor bit as that mode is not implemented in the guest. Fixes: b680f70fc111 ("KVM/MIPS32: Entry point for trampolining to...") 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 Cc: <stable@vger.kernel.org> # 3.10.x- Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/emulate.c')
0 files changed, 0 insertions, 0 deletions