]> git.baikalelectronics.ru Git - kernel.git/commit
x86/db: Split out dr6/7 handling
authorPeter Zijlstra <peterz@infradead.org>
Mon, 6 Apr 2020 19:02:56 +0000 (21:02 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:59 +0000 (15:14 +0200)
commitd1ec89a00785c98794a57303cd5c3f523e2cedd3
tree52051e8aa46fb1962af8f97c4d6eb8876ca33936
parentf704d49831031ad5292b3ab1336eaa97124b56c3
x86/db: Split out dr6/7 handling

DR6/7 should be handled before nmi_enter() is invoked and restore after
nmi_exit() to minimize the exposure.

Split it out into helper inlines and bring it into the correct order.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200505135314.808628211@linutronix.de
arch/x86/kernel/hw_breakpoint.c
arch/x86/kernel/traps.c