Re: [PATCH] xen/sched: always modify vcpu pause flags atomically

2020-05-07 Thread Dario Faggioli
On Wed, 2020-05-06 at 17:16 +0200, Juergen Gross wrote: > credit2 is currently modifying the pause flags of vcpus non- > atomically > via sched_set_pause_flags() and sched_clear_pause_flags(). This is > dangerous as there are cases where the paus flags are modified > without > any lock held. > Rig

[PATCH] xen/sched: always modify vcpu pause flags atomically

2020-05-06 Thread Juergen Gross
credit2 is currently modifying the pause flags of vcpus non-atomically via sched_set_pause_flags() and sched_clear_pause_flags(). This is dangerous as there are cases where the paus flags are modified without any lock held. So drop the non-atomic pause flag modification functions and rename the at