Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Yang Zhang
On 2016/5/25 7:37, David Matlack wrote: On Tue, May 24, 2016 at 4:11 PM, Wanpeng Li wrote: 2016-05-25 6:38 GMT+08:00 David Matlack : On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: From: Wanpeng Li If an emulated lapic timer will fire soon(in the scope of 10us the base of dynamic halt-

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
2016-05-25 8:47 GMT+08:00 Wanpeng Li : > 2016-05-25 7:37 GMT+08:00 David Matlack : >> On Tue, May 24, 2016 at 4:11 PM, Wanpeng Li wrote: >>> 2016-05-25 6:38 GMT+08:00 David Matlack : On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: > From: Wanpeng Li > > If an emulated lapic

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
2016-05-25 7:37 GMT+08:00 David Matlack : > On Tue, May 24, 2016 at 4:11 PM, Wanpeng Li wrote: >> 2016-05-25 6:38 GMT+08:00 David Matlack : >>> On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: From: Wanpeng Li If an emulated lapic timer will fire soon(in the scope of 10us the >

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread David Matlack
On Tue, May 24, 2016 at 4:11 PM, Wanpeng Li wrote: > 2016-05-25 6:38 GMT+08:00 David Matlack : >> On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> If an emulated lapic timer will fire soon(in the scope of 10us the >>> base of dynamic halt-polling, lower-end of mes

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
2016-05-25 1:15 GMT+08:00 Christian Borntraeger : > On 05/24/2016 09:57 AM, Wanpeng Li wrote: >> From: Wanpeng Li >> >> If an emulated lapic timer will fire soon(in the scope of 10us the >> base of dynamic halt-polling, lower-end of message passing workload >> latency TCP_RR's poll time < 10us) we

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
2016-05-25 6:38 GMT+08:00 David Matlack : > On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: >> From: Wanpeng Li >> >> If an emulated lapic timer will fire soon(in the scope of 10us the >> base of dynamic halt-polling, lower-end of message passing workload >> latency TCP_RR's poll time < 10us)

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread David Matlack
On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: > From: Wanpeng Li > > If an emulated lapic timer will fire soon(in the scope of 10us the > base of dynamic halt-polling, lower-end of message passing workload > latency TCP_RR's poll time < 10us) we can treat it as a short halt, > and poll to w

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Christian Borntraeger
On 05/24/2016 09:57 AM, Wanpeng Li wrote: > From: Wanpeng Li > > If an emulated lapic timer will fire soon(in the scope of 10us the > base of dynamic halt-polling, lower-end of message passing workload > latency TCP_RR's poll time < 10us) we can treat it as a short halt, > and poll to wait it fir

[PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
From: Wanpeng Li If an emulated lapic timer will fire soon(in the scope of 10us the base of dynamic halt-polling, lower-end of message passing workload latency TCP_RR's poll time < 10us) we can treat it as a short halt, and poll to wait it fire, the fire callback apic_timer_fn() will set KVM_REQ_