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)
commit91ee8f5c1f50a1f4096c178a93a8da46ce3f6cc8
treeb6d2f7e3b39f02c270d928ea6692b42956dabc14
parentafd7969a99e072e6aa0d88511176d4d2f3009fd9
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