Hi George,

> On Sep 21, 2023, at 20:23, George Dunlap <george.dun...@cloud.com> wrote:
> 
> On large systems with many vcpus yielding due to spinlock priority
> inversion, it's not uncommon for a vcpu to yield its timeslice, only
> to be immediately stolen by another pcpu looking for higher-priority
> work.
> 
> To prevent this:
> 
> * Keep the YIELD flag until a vcpu is removed from a runqueue
> 
> * When looking for work to steal, skip vcpus which have yielded
> 
> NB that this does mean that sometimes a VM is inserted into an empty
> runqueue; handle that case.
> 
> Signed-off-by: George Dunlap <george.dun...@cloud.com>

Release-acked-by: Henry Wang <henry.w...@arm.com>

Kind regards,
Henry

Reply via email to