Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2254151ybl; Thu, 29 Aug 2019 05:54:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAFhKRdgnhz+qhR47KCCVgeH8F7EA36+ixYtRW2F5bUGwnUYZv2D3977GydVddPkkKATb3 X-Received: by 2002:a17:90a:fe0e:: with SMTP id ck14mr9590203pjb.78.1567083279808; Thu, 29 Aug 2019 05:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567083279; cv=none; d=google.com; s=arc-20160816; b=ZxweUYNGJ9u9aLfxgPeBOcf+1Ui1brqPG3HHxKZloYbe3LR86NcK0bOpetSu19aHCY iGzi1kVYZBMRjL2MUC4MGQliN5Wmmbzg6zbJQFSk1jV2Z3In5LJRee2iYurFEIRStrnK G2bZ6oElea9jrunpv3a0xsnBj4lmMIJv3tUx02o8SEkuPFTJFR965okKHgc2oxG31mui NN/Rx8wTYc5AZW9MzWySMmrs3k+fNT4D0QGem85TQpXt7mRmZuwpN3D/YxFIxqVodNjf 2hHbAB6NszgCio4C9TF2jf451zHfVS3E+2UI4IARQhTka2MAOCCVPphXtcMET/76FbTu w7EQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uHWQ39omV11hAN6NwkXoVohsRgbTOfn9o8iGBC8zk5o=; b=yHMQMhfQWEqaGEkgIp77oFAf0bVtsFVfn2BWbu0m1fM6/KuttS++s/2auaCzHEZUJQ NuEuv9JE8UTGaJZgNBZ+CnjO8B4XYV+uHdYE1RWsAPGpoS0tpUTs1lyyGVTasSE5LTqU 6qfKwtVzbfiMdPt3hdiHH0jW9tAthZjD3tMRiSJ5ttUMwqEpQeA57le3xj3UL/VoWNpm W/lz75SME/Rc/1X0dHc+a3oFqzSH6d9GtM74qcOz8+mb/3mN9CTxdrs0SYthAizfMEhe UoQSVxP7a3NjjFfvpraH9b7Isfgb8FkZ8BOKhnnlYEF/TvlJON+9N1x6rXS6FDddgDxU NICQ== 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 f128si1963036pgc.55.2019.08.29.05.54.23; Thu, 29 Aug 2019 05:54:39 -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 S1727124AbfH2Mx0 (ORCPT + 99 others); Thu, 29 Aug 2019 08:53:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36726 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfH2MxZ (ORCPT ); Thu, 29 Aug 2019 08:53:25 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7C68B8AB25B; Thu, 29 Aug 2019 12:53:25 +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 001706060D; Thu, 29 Aug 2019 12:53:22 +0000 (UTC) Received: from amt.cnet (localhost [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 61ACB10513F; Thu, 29 Aug 2019 09:53:06 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.7/8.14.7/Submit) id x7TCr42i012268; Thu, 29 Aug 2019 09:53:04 -0300 Date: Thu, 29 Aug 2019 09:53:04 -0300 From: Marcelo Tosatti To: Wanpeng Li Cc: "Rafael J. Wysocki" , 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: <20190829125304.GA12214@amt.cnet> References: <20190803202058.GA9316@amt.cnet> <20190826204045.GA24697@amt.cnet> <20190828143916.GA13725@amt.cnet> <20190829120422.GC4949@amt.cnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.68]); Thu, 29 Aug 2019 12:53:25 +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 08:16:41PM +0800, Wanpeng Li wrote: > > 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. > > non overcommit group, if they don't care latency/performance, they > don't need to enable haltpoll, "realtime hints" etc. Otherwise, they > should better tune. As mentioned before, "being overcommitted" is a property which is transitional. A static true/false scheme reflects this poorly. Therefore the OS should detect it and act accordingly.