diff options
| author | Stefano Stabellini <[email protected]> | 2011-04-19 13:47:31 +0000 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <[email protected]> | 2011-04-20 13:43:13 +0000 |
| commit | ee176455e28469e2420032aab3db11ac2ae3eaa8 (patch) | |
| tree | e8cfbf2cfd2a0617bb3a24d8851b2cde1eee2709 /tools/perf/util/trace-event-scripting.c | |
| parent | xen: do not create the extra e820 region at an addr lower than 4G (diff) | |
| download | kernel-ee176455e28469e2420032aab3db11ac2ae3eaa8.tar.gz kernel-ee176455e28469e2420032aab3db11ac2ae3eaa8.zip | |
xen: mask_rw_pte: do not apply the early_ioremap checks on x86_32
The two "is_early_ioremap_ptep" checks in mask_rw_pte are only used on
x86_64, in fact early_ioremap is not used at all to setup the initial
pagetable on x86_32.
Moreover on x86_32 the two checks are wrong because the range
pgt_buf_start..pgt_buf_end initially should be mapped RW because
the pages in the range are not pagetable pages yet and haven't been
cleared yet. Afterwards considering the pgt_buf_start..pgt_buf_end is
part of the initial mapping, xen_alloc_pte is capable of turning
the ptes RO when they become pagetable pages.
Fix the issue and improve the readability of the code providing two
different implementation of mask_rw_pte for x86_32 and x86_64.
Signed-off-by: Stefano Stabellini <[email protected]>
Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
