Add VM_INIT_DEF_MASK, to allow us to set the default flags for VMs. It also adds a prctl control which allows us to set the THP disable bit in mm->def_flags so that VMs will pick up the setting as they are created.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -149,4 +149,7 @@ · 148 unmodified lines | ||
| 149 | 149 | |
| 150 | 150 | #define PR_GET_TID_ADDRESS 40 |
| 151 | 151 | |
| 152 | +#define PR_SET_THP_DISABLE 41 | |
| 153 | +#define PR_GET_THP_DISABLE 42 | |
| 154 | + | |
| 152 | 155 | #endif /* _LINUX_PRCTL_H */ |