From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH v2 0/2] kvm: x86 CPU power management Date: Fri, 15 Jun 2018 17:15:33 +0300 Message-ID: <20180615165251-mutt-send-email-mst@kernel.org> References: <20180612184616.90838-1-mst@redhat.com> <20180614081800.GH6355@redhat.com> <2219a7fd-b496-6653-b79a-c20136727f98@redhat.com> <20180614154441.GC18967@redhat.com> <14e39e34-6314-05f1-2b90-42bea564efaa@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Eduardo Habkost , kvm@vger.kernel.org, Marcelo Tosatti , qemu-devel@nongnu.org, Richard Henderson To: Paolo Bonzini Return-path: Content-Disposition: inline In-Reply-To: <14e39e34-6314-05f1-2b90-42bea564efaa@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel2=m.gmane.org@nongnu.org Sender: "Qemu-devel" List-Id: kvm.vger.kernel.org On Thu, Jun 14, 2018 at 10:32:00PM +0200, Paolo Bonzini wrote: > On 14/06/2018 17:44, Daniel P. Berrang=E9 wrote: > >> "-cpu" is certainly wrong for KVM_CAP_X86_DISABLE_EXITS. "-cpu" is a > >> device option, while this is about host behavior. "-realtime"'s nam= e is > >> awful, but I still think it's the best place for this option. Maybe= we > >> could call it "-realtime power-mgmt=3D{host|guest}". > > If none of the existing ones are a suitable fit, then we should just > > introduce a new CLI arg instead stuffing it into somewhere odd. >=20 > It is related to mlock in my opinion. Both options are about applying > settings that reduce latency but may not be applicable in general. I would add, it's also about host resource handling. With mlock guest memory is locked so there's no memory overcommit. With cpu-pm guest does not give up host cpu which mostly disables host cpu overcommit. > Maybe "-realtime" could be renamed to "-perftune" or something like > that, but I'd like to keep the grouping. >=20 > Paolo -overcommit ? > > IOW, why not just "--power-mgmt host|guest"