On 22/06/18 10:25, Will Deacon wrote:
We inspect __kpti_forced early on as part of the cpufeature enable
callback which remaps the swapper page table using non-global entries.
Ensure that __kpti_forced has been updated to reflect the kpti=
command-line option before we start using it.
This also fixes the case where SPE driver complains about missing
kpti=off even when it's present as __setup parse kpti only after
boot CPU detects and marks ARM64_UNMAP_KERNEL_AT_EL0 capability.
Tested-by: Sudeep Holla <redacted>
--
Regards,
Sudeep