diff options
| author | Aneesh Kumar K.V <[email protected]> | 2016-04-29 23:25:31 +1000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2016-05-01 18:32:23 +1000 |
| commit | 73a1441a9b2ae05c15eb7cc90d4de379b44249bf (patch) | |
| tree | f3e91025eaa84ccd36bf71bd9f5fd2e19e2c9a6a /tools/perf/scripts/python | |
| parent | c7d54842deb1fa357cff75b988275a1c9f259140 (diff) | |
powerpc/mm/subpage: Clear RWX bit to indicate no access
Subpage protection used to depend on the _PAGE_USER bit to implement no
access mode. This patch switches that to use _PAGE_RWX. We clear Read,
Write and Execute access from the pte instead of clearing _PAGE_USER
now. This was done so that we can switch to _PAGE_PRIVILEGED in a later
patch.
subpage_protection() returns pte bits that need to be cleared. Instead
of updating the interface to handle no-access in a separate way, it
appears simpler to clear RWX acecss to indicate no access.
We still don't insert hash ptes for no access implied by !_PAGE_RWX.
Hence we should not get PROT_FAULT with change.
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions