diff options
author | James Hogan <[email protected]> | 2015-02-04 10:52:03 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2015-02-04 16:23:33 +0100 |
commit | c4c6f2cad9e1d4cc076bc183c3689cc9e7019c75 (patch) | |
tree | e7afc343303e4e6a048fd67156ff6fa7a68885cd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 705699a139948a671cd66b915e8095c95fdf44d9 (diff) |
KVM: MIPS: Disable HTW while in guest
Ensure any hardware page table walker (HTW) is disabled while in KVM
guest mode, as KVM doesn't yet set up hardware page table walking for
guest mappings so the wrong mappings would get loaded, resulting in the
guest hanging or crashing once it reaches userland.
The HTW is disabled and re-enabled around the call to
__kvm_mips_vcpu_run() which does the initial switch into guest mode and
the final switch out of guest context. Additionally it is enabled for
the duration of guest exits (i.e. kvm_mips_handle_exit()), getting
disabled again before returning back to guest or host.
In all cases the HTW is only disabled in normal kernel mode while
interrupts are disabled, so that the HTW doesn't get left disabled if
the process is preempted.
Signed-off-by: James Hogan <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Markos Chandras <[email protected]>
Cc: Gleb Natapov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: <[email protected]> # v3.17+
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions