Received: from eggs.gnu.org ([2001:4830:134:3::10]:55841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eX7vb-0008Cm-1Y for qemu-devel@nongnu.org; Thu, 04 Jan 2018 10:59:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eX7vW-0004AK-RQ for qemu-devel@nongnu.org; Thu, 04 Jan 2018 10:59:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42304) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eX7vW-00049X-Kw for qemu-devel@nongnu.org; Thu, 04 Jan 2018 10:59:30 -0500 References: <1515071752-22961-1-git-send-email-thuth@redhat.com> <20180104140930.7hbtnen3lw7epmrh@var.youpi.perso.aquilenet.fr> <20180104141524.m5xy66jsn2hiajwl@var.youpi.perso.aquilenet.fr> <20180104142101.rivje5qn5dasb6jw@var.youpi.perso.aquilenet.fr> <20180104152402.fv52umjmlb2g22wc@var.youpi.perso.aquilenet.fr> <20180104153219.wsxtkzuznu2iwra7@var.youpi.perso.aquilenet.fr> <9b392599-a318-90c5-daa8-89ade40c64e5@redhat.com> From: Thomas Huth Message-ID: Date: Thu, 4 Jan 2018 16:59:23 +0100 MIME-Version: 1.0 In-Reply-To: <9b392599-a318-90c5-daa8-89ade40c64e5@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] usb: Remove legacy -usbdevice option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Samuel Thibault Cc: Peter Maydell , kraxel@redhat.com, qemu-devel@nongnu.org On 04.01.2018 16:47, Paolo Bonzini wrote: > On 04/01/2018 16:35, Thomas Huth wrote: >>> Well, why not, it just doesn't seem to me much simpler than >>> "-serial braille" and "-device usb-braille" :) >> >> FWIW, I think I'd also rather prefer to add some little bit of "magic" >> to "-device usb-braille" instead of introducing yet another command line >> parameter. QEMU's command line interface is already way too much >> overcrowded, so IMHO we should try to avoid new parameters if possible. > > The point of deprecation is not to make the interface simpler, it is to > avoid cases where one option is doing too much and/or crossing > abstraction boundaries, for example -net creating both a device and a > hub port. > > "-serial" is okay because it only creates the front-end, it's the board > that decides how to attach it to the back-end. > > -usbdevice creating both a front-end and a back-end is not a problem per > se. The issue with -usbdevice is just that it's too much code. > > However, adding magic to "-device usb-braille" that creates both a > front-end and a back-end is completely the opposite of sane... Ok, makes sense. But instead of introducing a new "-braille" parameter, maybe we should rather keep some of the convenience "-usbdevice" possibilities around? E.g. keep "-usbdevice braille", "-usbdevice mouse", etc. but remove things like "-usbdevice serial" and "-usbdevice host" where the code is rather ugly and the user do not gain much in comparison to "-device" ? Thomas