Re: [PATCH 2/2] xen/rwlock: add check_lock() handling to rwlocks

2020-10-30 Thread Jürgen Groß
On 30.10.20 16:13, Jürgen Groß wrote: On 30.10.20 16:10, Jan Beulich wrote: On 30.10.2020 15:25, Juergen Gross wrote: --- a/xen/include/xen/rwlock.h +++ b/xen/include/xen/rwlock.h @@ -65,7 +65,11 @@ static inline int _read_trylock(rwlock_t *lock)    * arch_lock_acquire_barrier().   

Re: [PATCH 2/2] xen/rwlock: add check_lock() handling to rwlocks

2020-10-30 Thread Jürgen Groß
On 30.10.20 16:10, Jan Beulich wrote: On 30.10.2020 15:25, Juergen Gross wrote: --- a/xen/include/xen/rwlock.h +++ b/xen/include/xen/rwlock.h @@ -65,7 +65,11 @@ static inline int _read_trylock(rwlock_t *lock) * arch_lock_acquire_barrier(). */ if ( likely(_can_read

Re: [PATCH 2/2] xen/rwlock: add check_lock() handling to rwlocks

2020-10-30 Thread Jan Beulich
On 30.10.2020 15:25, Juergen Gross wrote: > --- a/xen/include/xen/rwlock.h > +++ b/xen/include/xen/rwlock.h > @@ -65,7 +65,11 @@ static inline int _read_trylock(rwlock_t *lock) > * arch_lock_acquire_barrier(). > */ > if ( likely(_can_read_lock(cnts)) ) > +{ > +

[PATCH 2/2] xen/rwlock: add check_lock() handling to rwlocks

2020-10-30 Thread Juergen Gross
Checking whether a lock is consistently used regarding interrupts on or off is beneficial for rwlocks, too. So add check_lock() calls to rwlock functions. For this purpose make check_lock() globally accessible. Signed-off-by: Juergen Gross --- xen/common/spinlock.c | 3 +-- xen/include/xe