diff options
| author | James Hogan <[email protected]> | 2016-05-06 14:36:18 +0100 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2016-05-13 14:02:18 +0200 |
| commit | 5fb59fd2e7f7ee6bfc20ab9c0ef82e33c0057be5 (patch) | |
| tree | b3c604c2b4705e6e7317620186c00dd0ba7449ed /tools/perf/scripts/python | |
| parent | 97b921087fa76b1b0b2a20ae70d0e8b6d394c4ea (diff) | |
MIPS: KVM/locore.S: Don't preserve host ASID around vcpu_run
MIPS KVM uses different ASIDs for guest execution than for the host.
The host ASID is saved on the stack when entering the guest with
__kvm_mips_vcpu_run(), and restored again before returning back to the
caller (exit to userland).
- This does not take into account that pre-emption may have taken place
during that time, which may have started a new ASID cycle and resulted
in that process' ASID being invalidated and reused.
- This does not take into account that the process may have migrated to
a different CPU during that time, with a different ASID assignment
since they are managed per-CPU.
- It is actually redundant, since the host ASID will be restored
correctly by kvm_arch_vcpu_put(), which is called almost immediately
after kvm_arch_vcpu_ioctl_run() returns.
Therefore drop this code from locore.S
Signed-off-by: James Hogan <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Radim Krčmář <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/13206/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions