aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-03-16 11:44:33 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-03-16 11:44:33 +0000
commitfd8d844f7622a08d362994fde083170ec29088ae (patch)
treeddd401c39ecbacd9a9069413d165c0ba50e2afed /sys/sys/proc.h
parent6f1fe3305a2be0a1395569b2ea5f56a93e491ae0 (diff)
downloadsrc-fd8d844f7622a08d362994fde083170ec29088ae.tar.gz
src-fd8d844f7622a08d362994fde083170ec29088ae.zip
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
Notes
Notes: svn path=/head/; revision=345228
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 2d71a72e4d2c..53d5cc88d58f 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -1097,6 +1097,8 @@ bool cpu_exec_vmspace_reuse(struct proc *p, struct vm_map *map);
int cpu_fetch_syscall_args(struct thread *td);
void cpu_fork(struct thread *, struct proc *, struct thread *, int);
void cpu_fork_kthread_handler(struct thread *, void (*)(void *), void *);
+int cpu_procctl(struct thread *td, int idtype, id_t id, int com,
+ void *data);
void cpu_set_syscall_retval(struct thread *, int);
void cpu_set_upcall(struct thread *, void (*)(void *), void *,
stack_t *);