From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH RESEND v2] i386/kvm: add support for KVM_CAP_X86_DISABLE_EXITS Date: Wed, 16 May 2018 18:13:17 +0300 Message-ID: <20180516180847-mutt-send-email-mst@kernel.org> References: <1523953455-28053-1-git-send-email-wanpengli@tencent.com> <20180417205913.GC29865@localhost.localdomain> <02887fa6-d7c8-bc39-6e65-3c3caec5b903@redhat.com> <20180419195610.GA29865@localhost.localdomain> <98f48c44-e55a-2bd2-0d41-5643f35bce68@redhat.com> <20180419215320.GC29865@localhost.localdomain> <20180512010007-mutt-send-email-mst@kernel.org> <20180516172121-mutt-send-email-mst@kernel.org> <2871c099-79fe-8432-12c9-637e743cc89c@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Wanpeng Li , Radim =?utf-8?B?S3LEjW3DocWZ?= , Eduardo Habkost , kvm@vger.kernel.org, qemu-devel@nongnu.org To: Paolo Bonzini Return-path: Content-Disposition: inline In-Reply-To: <2871c099-79fe-8432-12c9-637e743cc89c@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 Wed, May 16, 2018 at 05:04:41PM +0200, Paolo Bonzini wrote: > On 16/05/2018 16:22, Michael S. Tsirkin wrote: > >> kvm-hint-dedicated=on only sets the CPUID bit, which Linux for example > >> uses that to disable pv spinlocks. "-realtime dedicated-cpus=on" only > >> disables the vmexits. You can use the two independently. > > > > But when would you want to use the two independently? > > 1) For testing > > 2) When some of your QEMUs are too old to support kvm-hint-dedicated=on, > you may still want to use -realtime dedicated-cpus=on to get better > performance on the new one. > > Paolo For the second purpose, can't we handle this using machine types? -- MST