Re: [PATCH] x86/debug: Allow a single level of #DB recursion

2020-08-20 Thread Andy Lutomirski
On Thu, Aug 20, 2020 at 1:44 AM wrote: > > On Wed, Aug 19, 2020 at 05:15:43PM -0700, Andy Lutomirski wrote: > > +static __always_inline void debug_enter(unsigned long *dr6, unsigned long > > *dr7) > > +{ > > + *dr6 = debug_read_clear_dr6(); > > } > > > > static __always_inline void debug_ex

Re: [PATCH] x86/debug: Allow a single level of #DB recursion

2020-08-20 Thread peterz
On Wed, Aug 19, 2020 at 05:15:43PM -0700, Andy Lutomirski wrote: > +static __always_inline void debug_enter(unsigned long *dr6, unsigned long > *dr7) > +{ > + *dr6 = debug_read_clear_dr6(); > } > > static __always_inline void debug_exit(unsigned long dr7) > { > - local_db_restore(dr7)