From: Paolo Bonzini Subject: Re: [PATCH v3 1/2] kvm: support -dedicated cpu-pm=on|off Date: Wed, 20 Jun 2018 16:20:40 +0200 Message-ID: <75758aed-81ab-d320-595d-3c7832faa8d8@redhat.com> References: <20180615222855.44421-1-mst@redhat.com> <20180615222855.44421-2-mst@redhat.com> <20180619233509-mutt-send-email-mst@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Marcelo Tosatti , qemu-devel@nongnu.org, Eduardo Habkost , Richard Henderson To: "Michael S. Tsirkin" Return-path: In-Reply-To: <20180619233509-mutt-send-email-mst@kernel.org> Content-Language: en-US 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 19/06/2018 22:43, Michael S. Tsirkin wrote: > >> 2) Maybe -hostresource? > > Is ability to cause high latency for other threads really a resource? The "resource" here is host CPU time. In general, a vCPU with KVM_CPU_X86_DISABLE_EXITS will use more host CPU time and block overcommitting, just like mlock does for memory. Paolo > The issues in question: > 1. a malicious guest can cause high latency for others sharing the host cpu. > 2. to host scheduler cpu looks busier than it really is.