See SDM rev. 68 Vol 3 4.6.2 Protection Keys and the description of the RDPKRU and WRPKRU instructions.
Tested by: pho
Paths
| Differential D18893 Authored by kib on Jan 18 2019, 6:09 PM.
Details
Summary See SDM rev. 68 Vol 3 4.6.2 Protection Keys and the description of the RDPKRU and WRPKRU instructions. Tested by: pho
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Herald added subscribers: rpokala, imp. · View Herald TranscriptJan 18 2019, 6:09 PM2019-01-18 18:09:14 (UTC+0) Harbormaster completed remote builds in B22034: Diff 52998.Jan 18 2019, 6:09 PM2019-01-18 18:09:17 (UTC+0) Comment Actions The patch is currently being tested by Peter Holm, more detailed description will come after the testing finishes. Also libc functions warrant manpages. kib edited the summary of this revision. (Show Details)Jan 22 2019, 5:36 PM2019-01-22 17:36:52 (UTC+0)
kib added inline comments.
kib marked 7 inline comments as done. Comment ActionsHandle all Mark' notes except M_NOWAIT. Harbormaster completed remote builds in B22100: Diff 53124.Jan 23 2019, 10:11 PM2019-01-23 22:11:54 (UTC+0) Harbormaster completed remote builds in B22101: Diff 53126.Jan 23 2019, 10:38 PM2019-01-23 22:38:04 (UTC+0) Comment Actions Do you think it would be useful to define a PKRU_SET flag that causes the operation to fail when the request range overlaps with an existing key range?
kib added inline comments.
kib marked 5 inline comments as done. Comment ActionsAdd AMD64_PKRU_EXCL. Harbormaster completed remote builds in B22149: Diff 53208.Jan 25 2019, 6:00 PM2019-01-25 18:00:37 (UTC+0) Harbormaster completed remote builds in B22155: Diff 53214.Jan 25 2019, 6:38 PM2019-01-25 18:38:04 (UTC+0)
kib added inline comments. kib marked 2 inline comments as done. Comment ActionsMove pmap_pkru_get() after all pmap lock relocks. Rename msva to va. Harbormaster completed remote builds in B22160: Diff 53221.Jan 25 2019, 7:45 PM2019-01-25 19:45:37 (UTC+0)
kib added inline comments.
kib marked 3 inline comments as done. Comment ActionsAdd comment about sync/w fork. Add formally required process_deferred() call (there is no deferred entries which curthread could create). Harbormaster completed remote builds in B22228: Diff 53338.Jan 28 2019, 7:04 PM2019-01-28 19:04:38 (UTC+0)
kib marked an inline comment as done. Comment ActionsRename rangeset_get() to rangeset_lookup(). Harbormaster completed remote builds in B22406: Diff 53720.Feb 9 2019, 2:51 AM2019-02-09 02:51:20 (UTC+0) This revision is now accepted and ready to land.Feb 15 2019, 9:47 PM2019-02-15 21:47:37 (UTC+0) Comment Actions
I plan to commit this review as is after Peter re-tests it. I do not want the grammar fixes to block the code. I will work on the man page independently of the code commit. Closed by commit rS344293: Add definition for %cr4 PKRU enable bit. (authored by kib). · Explain WhyFeb 19 2019, 7:13 PM2019-02-19 19:13:54 (UTC+0) This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state Needs Review.Feb 19 2019, 7:17 PM2019-02-19 19:17:28 (UTC+0) Closed by commit rS344296: Provide convenience C wrappers for RDPKRU and WRPKRU instructions. (authored by kib). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 53208 lib/libc/amd64/Symbol.map
lib/libc/i386/Symbol.map
lib/libc/x86/sys/Makefile.inc
lib/libc/x86/sys/pkru.c
|