From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933174AbcE0Jtd (ORCPT ); Fri, 27 May 2016 05:49:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56389 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932482AbcE0Jtc (ORCPT ); Fri, 27 May 2016 05:49:32 -0400 Subject: Re: [PATCH v5] KVM: halt-polling: poll for the upcoming fire timers To: yunhong jiang References: <1464144467-6714-1-git-send-email-wanpeng.li@hotmail.com> <20160526133331.5aadf122@jnakajim-build> Cc: Wanpeng Li , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Wanpeng Li , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , David Matlack , Christian Borntraeger , Yang Zhang From: Paolo Bonzini Message-ID: <0c7c9b5a-ce15-196b-e83e-627348f04d55@redhat.com> Date: Fri, 27 May 2016 11:49:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20160526133331.5aadf122@jnakajim-build> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 27 May 2016 09:49:31 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/05/2016 22:33, yunhong jiang wrote: > On Thu, 26 May 2016 12:26:27 +0200 > Paolo Bonzini wrote: > >> >> >> On 25/05/2016 04:47, 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 fire, the fire callback apic_timer_fn() will set >>> KVM_REQ_PENDING_TIMER, and this flag will be check during busy poll. >>> This can avoid context switch overhead and the latency which we wake >>> up vCPU. >> >> As discussed on IRC, I would like to understand why the adaptive > > Glad to know the IRC channel. Is #kvm channel on freenode the IRC you are > talking about? No, it's #qemu on irc.oftc.net. Thanks, Paolo