Re: [PATCH] kvm-vmx: add module parameter to avoid trapping HLT instructions (v2)

Srivatsa Vaddagiri
2010-12-04T05:43:53Z

On Fri, Dec 03, 2010 at 04:49:20PM -0600, Anthony Liguori wrote:
> default_idle() is not exported to modules and is not an interface
> meant to be called directly. Plus, an idle loop like this delays
> the guest until the scheduler wants to run something else but it
> doesn't account for another thread trying to inject an event into
> the halting thread. It's not immediately clear to me how to have
> what's effectively a wait queue that hlts instead of calls the
> scheduler. You could mess around with various signalling mechanisms
> but it gets ugly fast.

How about using MWAIT?

- vatsa