diff options
author | James Hogan <[email protected]> | 2016-12-06 14:59:28 +0000 |
---|---|---|
committer | James Hogan <[email protected]> | 2017-02-03 15:21:26 +0000 |
commit | b584f460e6d6f1bf968acfcd23aceb663ba996fa (patch) | |
tree | a7f25a4eb5abe195965b6a438c99df43ab44e0ac /tools/perf/util/trace-event-scripting.c | |
parent | b5f1dd1ba4042bda191cd2e72726c920e6c2867f (diff) |
KVM: MIPS/MMU: Pass GPA PTE bits to KSeg0 GVA PTEs
Propagate the GPA PTE protection bits on to the GVA PTEs on a KSeg0
fault (except _PAGE_WRITE), rather than always overriding the
protection. This allows dirty page tracking to work in KSeg0 as a clear
dirty bit in the GPA PTE will propagate to the GVA PTEs.
This makes it simpler to use a single kvm_mips_map_page() to obtain both
the main GPA PTE and its buddy (which may be invalid), which also allows
memory regions to be fully accessible when they don't start and end on a
2*PAGE_SIZE boundary.
Signed-off-by: James Hogan <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: "Radim Krčmář" <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: [email protected]
Cc: [email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions