Re: [PATCH] use unfair spinlock when running on hypervisor.

Andi Kleen
2010-06-01T19:37:06Z

> Collecting the contention/usage statistics on a per spinlock
> basis seems complex. I believe a practical approximation
> to this are adaptive mutexes where upon hitting a spin
> time threshold, punt and let the scheduler reconcile fairness.

That would probably work, except: how do you get the
adaptive spinlock into a paravirt op without slowing
down a standard kernel?

-Andi
--
ak@linux.intel.com -- Speaking for myself only.