Re: [PATCH][KVM] Add support for Pause Filtering to AMD SVM

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Monday, May 11, 2009 - 7:38 am

On Tue, 2009-05-05 at 09:09 -0500, Mark Langsdorf wrote:

Isn't a much better solution to the spinlock problem a usable
monitor-wait implementation?

If we implement virt spinlocks using monitor-wait they don't spin but
simply wait in place, the HV could then decide to run someone else.

This is the HV equivalent to futexes.

The only problem with this is that the current hardware has horrid mwait
wakeup latencies. If this were (much) improved you don't need such ugly
yield hacks like this.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH][KVM] Add support for Pause Filtering to AMD SVM, Mark Langsdorf, (Tue May 5, 7:09 am)
Re: [PATCH][KVM] Add support for Pause Filtering to AMD SVM, Peter Zijlstra, (Mon May 11, 7:38 am)