x86/mm/cpa: Allow range check for static protections
authorThomas Gleixner <tglx@linutronix.de>
Mon, 17 Sep 2018 14:29:10 +0000 (16:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Sep 2018 18:39:37 +0000 (20:39 +0200)
commitc9c4f45ff6f9d3c7c289a7a067abf5e3d45c22c6
treeb6d2f7e3b39f02c270d928ea6692b42956dabc14
parent5c2570ff9899ddaca20a341fa2c5875d76052f5c
x86/mm/cpa: Allow range check for static protections

Checking static protections only page by page is slow especially for huge
pages. To allow quick checks over a complete range, add the ability to do
that.

Make the checks inclusive so the ranges can be directly used for debug output
later.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Bin Yang <bin.yang@intel.com>
Cc: Mark Gross <mark.gross@intel.com>
Link: https://lkml.kernel.org/r/20180917143545.995734490@linutronix.de
arch/x86/mm/pageattr.c