Received: from eggs.gnu.org ([2001:4830:134:3::10]:59594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brP26-0007Im-BW for qemu-devel@nongnu.org; Tue, 04 Oct 2016 08:41:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brP21-0004Tc-4X for qemu-devel@nongnu.org; Tue, 04 Oct 2016 08:41:17 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:36992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brP20-0004Sl-U1 for qemu-devel@nongnu.org; Tue, 04 Oct 2016 08:41:13 -0400 Received: by mail-wm0-x231.google.com with SMTP id b201so142725701wmb.0 for ; Tue, 04 Oct 2016 05:41:12 -0700 (PDT) Sender: Paolo Bonzini References: <1475580648-6470-1-git-send-email-lvivier@redhat.com> <1475580648-6470-2-git-send-email-lvivier@redhat.com> From: Paolo Bonzini Message-ID: <4a11fc7e-ccec-2252-c356-a0ca3466bbf0@redhat.com> Date: Tue, 4 Oct 2016 14:41:09 +0200 MIME-Version: 1.0 In-Reply-To: <1475580648-6470-2-git-send-email-lvivier@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] accel: allows to select the "best" accelerator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: Peter Maydell , Thomas Huth , Stefano Stabellini , "Michael S . Tsirkin" , qemu-devel@nongnu.org, =?UTF-8?Q?Alex_Benn=c3=a9e?= On 04/10/2016 13:30, Laurent Vivier wrote: > But sometime, user wants to use a real accelerator without knowing > if he really can, with, for instance accel=kvm:tcg. > In this case, and if the accelerator is not available we > have a noisy "XXX accelerator not found". > > By allowing the user to ask the "best" accelerator for the given > target, we can avoid this problem. > > This patch introduces a new parameter for the "accel" property, the > "best" keyword. > > You can ask to use the best accelerator with "-M accel=best", > or if you want to use your favorite accelerator and if it is not > available, the best one, you can use, for instance > "-M accel=kvm:best". I don't think there's a single definition of a "best" accelerator. For example, some "-cpu" features may be available only with TCG. In that case, "kvm:tcg" has a clear meaning ("kvm" if it exists, otherwise "tcg") but "best" doesn't. I agree with Daniel that unit tests should use "tcg" exclusively, at least as a default. Paolo