diff options
| author | Jeremy Fitzhardinge <[email protected]> | 2007-10-16 11:51:30 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <[email protected]> | 2007-10-16 11:51:30 -0700 |
| commit | 74260714c56de4f967fcb2f17a8656bc574b75be (patch) | |
| tree | f02bcd991285a20a543fae69f916577c8447b8f4 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 9f79991d4186089e228274196413572cc000143b (diff) | |
xen: lock pte pages while pinning/unpinning
When a pagetable is created, it is made globally visible in the rmap
prio tree before it is pinned via arch_dup_mmap(), and remains in the
rmap tree while it is unpinned with arch_exit_mmap().
This means that other CPUs may race with the pinning/unpinning
process, and see a pte between when it gets marked RO and actually
pinned, causing any pte updates to fail with write-protect faults.
As a result, all pte pages must be properly locked, and only unlocked
once the pinning/unpinning process has finished.
In order to avoid taking spinlocks for the whole pagetable - which may
overflow the PREEMPT_BITS portion of preempt counter - it locks and pins
each pte page individually, and then finally pins the whole pagetable.
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Hugh Dickens <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Keir Fraser <[email protected]>
Cc: Jan Beulich <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions