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

Andi Kleen
2010-06-01T15:53:12Z

Gleb Natapov <gleb@redhat.com> writes:
>
> The patch below allows to patch ticket spinlock code to behave similar to
> old unfair spinlock when hypervisor is detected. After patching unlocked

The question is what happens when you have a system with unfair
memory and you run the hypervisor on that. There it could be much worse.

Your new code would starve again, right?

There's a reason the ticket spinlocks were added in the first place.

-Andi

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