Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

From: Wanpeng Li
Date: Thu May 26 2016 - 04:05:18 EST


2016-05-24 2:01 GMT+08:00 David Matlack <dmatlack@xxxxxxxxxx>:
> On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li <kernellwp@xxxxxxxxx> wrote:
>> From: Wanpeng Li <wanpeng.li@xxxxxxxxxxx>
>
> I'm ok with this patch, but I'd like to better understand the target
> workloads. What type of workloads do you expect to benefit from this?
>

In addition, as Paolo great pointed out
http://www.spinics.net/lists/kvm/msg132983.html, the upcoming vmx
preemption timer also can get benefit, preemption time will just
switch to hrtimer if block, if the remaining expire time is enough
small and there is just a single task in this pCPU, poll will cut the
latency.

Regards,
Wanpeng Li