]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm/cpa: Add debug mechanism
authorThomas Gleixner <tglx@linutronix.de>
Mon, 17 Sep 2018 14:29:11 +0000 (16:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Sep 2018 18:39:38 +0000 (20:39 +0200)
commit793139dfd4281a9489dccd9ba115f08fcc97f182
tree057fe915206b0f01b9db253b7871561d28be5824
parentb0bb81be63a58069f5ea76bc2955bb9b1352f89a
x86/mm/cpa: Add debug mechanism

The whole static protection magic is silently fixing up anything which is
handed in. That's just wrong. The offending call sites need to be fixed.

Add a debug mechanism which emits a warning if a requested mapping needs to be
fixed up. The DETECT debug mechanism is really not meant to be enabled except
for developers, so limit the output hard to the protection fixups.

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/20180917143546.078998733@linutronix.de
arch/x86/mm/pageattr.c