HomeFreeBSD

amd64 KPTI: add control from procctl(2).

Description

amd64 KPTI: add control from procctl(2).

Add the infrastructure to allow MD procctl(2) commands, and use it to
introduce amd64 PTI control and reporting. PTI mode cannot be
modified for existing pmap, the knob controls PTI of the new vmspace
created on exec.

Requested by: jhb
Reviewed by: jhb, markj (previous version)
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D19514

Details

Provenance
kibAuthored on
Reviewer
jhb
Differential Revision
D19514: KPTI: add control from proccontrol(8)
Parents
rS345227: amd64: Add md process flags and first P_MD_PTI flag.
Branches
Unknown
Tags
Unknown