amd64: annotate pti with __read_frequently

This commit is contained in:
Mateusz Guzik 2018-05-21 05:20:23 +00:00
parent 9aeb8f9999
commit edacda736b

View File

@ -413,7 +413,7 @@ int invpcid_works = 0;
SYSCTL_INT(_vm_pmap, OID_AUTO, invpcid_works, CTLFLAG_RD, &invpcid_works, 0,
"Is the invpcid instruction available ?");
int pti = 0;
int __read_frequently pti = 0;
SYSCTL_INT(_vm_pmap, OID_AUTO, pti, CTLFLAG_RDTUN | CTLFLAG_NOFETCH,
&pti, 0,
"Page Table Isolation enabled");