[PATCH v3 16/20] arm64: entry: Add fake CPU feature for unmapping the kernel at EL0
Mark Rutland
mark.rutland at arm.com
Wed Dec 6 06:11:39 PST 2017
On Wed, Dec 06, 2017 at 12:35:35PM +0000, Will Deacon wrote:
> +static bool unmap_kernel_at_el0(const struct arm64_cpu_capabilities *entry,
> + int __unused)
> +{
> + /* Forced on command line? */
> + if (__kpti_forced) {
> + pr_info("kernel page table isolation forced %s by command line option\n",
> + __kpti_forced > 0 ? "ON" : "OFF");
> + return __kpti_forced > 0;
> + }
I think we want this to be a pr_info_once() so that we don't print this
for late-onlined secondaries due to verify_local_cpu_features().
With that changed:
Reviewed-by: Mark Rutland <mark.rutland at arm.com>
Thanks,
Mark.
More information about the linux-arm-kernel
mailing list