Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2197776ybl; Thu, 29 Aug 2019 05:06:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZRb+wlEsHtxGXqRvKPfeRe2SLvF6aBPX1rfvIKKTNJykg+6/W945c+QjKB3PdDPEr7Jy+ X-Received: by 2002:a17:902:7886:: with SMTP id q6mr9714801pll.78.1567080374173; Thu, 29 Aug 2019 05:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567080374; cv=none; d=google.com; s=arc-20160816; b=w7N1xsh5rKp/l9XYF3N1eeFHAGHCF/nzK9/57FZ6G//Z6oRmjFV8WdCImtnGGRHhDA AUvl5vB0j35BFo1k1KgX3jh66tFLDqMyx96nqmMVxXEVZ9t9bJ55fK7wryHvQfquWu9A mMYEYaF51fxycyVC/5GSdZPNyj6XBEIcVDdtxsXil1WlOdgWeontq8fSjPFQPrWhG5am 5cYb+EChhLfR0aPPx6VK/gY2rErqE1alvzew/o00RhSRp+rrBfwCIkYEyHcndyQTalI1 8Gt42h1YHkpdgfSt17WwRdMSumMe+ci4t+UUO1nrxd5fFP3KME3jcOZClFrm1IjN435n Ad/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iotCvkeG6jlAsk0KJQhHkRHLZDfc3sbIhltri2oPXEE=; b=qPhjUFNIhtkLTmGIDdW4ugLRF/SytGKlbRkpS7obS2Oe8xgqKKyynUgnVNJsPnA3sI nGJD33Ivac95FW61TJLT37PmG+DaOi6xNans+dr7bE+e3liNw8AwVh0ptEsvhnrsuC+5 ye1V2KHiBEAz7hlOw8vaLivkJgs3aTUbYoYgVpIpx9UZdXpzgPd2ZxBYMCZtz/4/8K6Q rreWGbLijDRPwnbD8B1UJGHJEGo2aqUqF39miR8aMfSGbjTFByzBUXgxu/8YRpWce2yl mrHInuo4+xqpLAS2C7s8yB4nNM/dDnPVROdFEX0nTyoen2Azgy22APNFhR0NAVkWaKhx w3SQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cu10si2023771pjb.16.2019.08.29.05.05.57; Thu, 29 Aug 2019 05:06:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727223AbfH2MEq (ORCPT + 99 others); Thu, 29 Aug 2019 08:04:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41844 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfH2MEq (ORCPT ); Thu, 29 Aug 2019 08:04:46 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5099649; Thu, 29 Aug 2019 12:04:45 +0000 (UTC) Received: from amt.cnet (ovpn-112-4.gru2.redhat.com [10.97.112.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 85FC619D7A; Thu, 29 Aug 2019 12:04:41 +0000 (UTC) Received: from amt.cnet (localhost [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 8408F105140; Thu, 29 Aug 2019 09:04:24 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.7/8.14.7/Submit) id x7TC4Mmr010498; Thu, 29 Aug 2019 09:04:22 -0300 Date: Thu, 29 Aug 2019 09:04:22 -0300 From: Marcelo Tosatti To: "Rafael J. Wysocki" Cc: Wanpeng Li , Paolo Bonzini , "Rafael J. Wysocki" , LKML , kvm , Radim =?utf-8?B?S3LEjW3DocWZ?= , Linux PM , "Michael S. Tsirkin" Subject: Re: [PATCH] cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available Message-ID: <20190829120422.GC4949@amt.cnet> References: <7b1e3025-f513-7068-32ac-4830d67b65ac@intel.com> <20190803202058.GA9316@amt.cnet> <20190826204045.GA24697@amt.cnet> <20190828143916.GA13725@amt.cnet> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.71]); Thu, 29 Aug 2019 12:04:45 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 01:37:35AM +0200, Rafael J. Wysocki wrote: > On Wed, Aug 28, 2019 at 4:39 PM Marcelo Tosatti wrote: > > > > On Wed, Aug 28, 2019 at 10:45:44AM +0200, Rafael J. Wysocki wrote: > > > On Wed, Aug 28, 2019 at 10:34 AM Wanpeng Li wrote: > > > > > > > > On Tue, 27 Aug 2019 at 08:43, Wanpeng Li wrote: > > > > > > > > > > Cc Michael S. Tsirkin, > > > > > On Tue, 27 Aug 2019 at 04:42, Marcelo Tosatti wrote: > > > > > > > > > > > > On Tue, Aug 13, 2019 at 08:55:29AM +0800, Wanpeng Li wrote: > > > > > > > On Sun, 4 Aug 2019 at 04:21, Marcelo Tosatti wrote: > > > > > > > > > > > > > > > > On Thu, Aug 01, 2019 at 06:54:49PM +0200, Paolo Bonzini wrote: > > > > > > > > > On 01/08/19 18:51, Rafael J. Wysocki wrote: > > > > > > > > > > On 8/1/2019 9:06 AM, Wanpeng Li wrote: > > > > > > > > > >> From: Wanpeng Li > > > > > > > > > >> > > > > > > > > > >> The downside of guest side polling is that polling is performed even > > > > > > > > > >> with other runnable tasks in the host. However, even if poll in kvm > > > > > > > > > >> can aware whether or not other runnable tasks in the same pCPU, it > > > > > > > > > >> can still incur extra overhead in over-subscribe scenario. Now we can > > > > > > > > > >> just enable guest polling when dedicated pCPUs are available. > > > > > > > > > >> > > > > > > > > > >> Cc: Rafael J. Wysocki > > > > > > > > > >> Cc: Paolo Bonzini > > > > > > > > > >> Cc: Radim Krčmář > > > > > > > > > >> Cc: Marcelo Tosatti > > > > > > > > > >> Signed-off-by: Wanpeng Li > > > > > > > > > > > > > > > > > > > > Paolo, Marcelo, any comments? > > > > > > > > > > > > > > > > > > Yes, it's a good idea. > > > > > > > > > > > > > > > > > > Acked-by: Paolo Bonzini > > > > > > > > Hi Marcelo, > > > > > > > > If you don't have more concern, I guess Rafael can apply this patch > > > > now since the merge window is not too far. > > > > > > I will likely queue it up later today and it will go to linux-next > > > early next week. > > > > > > Thanks! > > > > NACK patch. > > I got an ACK from Paolo on it, though. Convince Paolo to withdraw his > ACK if you want it to not be applied. > > > Just don't load the haltpoll driver. > > And why would that be better? Split the group of all kvm users in two: overcommit group and non-overcommit group. Current situation regarding haltpoll driver is: overcommit group: haltpoll driver is not loaded by default, they are happy. non overcommit group: boots without "realtime hints" flag, loads haltpoll driver, happy. Situation with patch above: overcommit group: haltpoll driver is not loaded by default, they are happy. non overcommit group: boots without "realtime hints" flag, haltpoll driver cannot be loaded.