Received: from eggs.gnu.org ([2001:4830:134:3::10]:34017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVLcm-00016d-E3 for qemu-devel@nongnu.org; Mon, 15 Feb 2016 11:03:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVLcj-0004ra-6f for qemu-devel@nongnu.org; Mon, 15 Feb 2016 11:03:44 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:56558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVLci-0004qn-T7 for qemu-devel@nongnu.org; Mon, 15 Feb 2016 11:03:41 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 15 Feb 2016 16:03:37 -0000 Date: Mon, 15 Feb 2016 17:03:33 +0100 From: Cornelia Huck Message-ID: <20160215170333.69e11174.cornelia.huck@de.ibm.com> In-Reply-To: <87fuwzcjaf.fsf@oc4731375738.ibm.com> References: <1455023713-104799-1-git-send-email-silbe@linux.vnet.ibm.com> <1455023713-104799-3-git-send-email-silbe@linux.vnet.ibm.com> <87h9hfk4cw.fsf@blackfin.pond.sub.org> <20160211101831.3ba6dcf9.cornelia.huck@de.ibm.com> <87fuwzcjaf.fsf@oc4731375738.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/3] qdev-monitor: add missing aliases for virtio-{9p, balloon, rng, scsi} List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sascha Silbe Cc: Kevin Wolf , qemu-block@nongnu.org, "Michael S. Tsirkin" , Markus Armbruster , Alexander Graf , qemu-devel@nongnu.org, Tu Bo , Christian Borntraeger On Thu, 11 Feb 2016 17:18:32 +0100 Sascha Silbe wrote: > Cornelia Huck writes: >=20 > > On Thu, 11 Feb 2016 10:01:35 +0100 > > Markus Armbruster wrote: > > > >> Sascha Silbe writes: > > > >> > This leaves out > >> > virtio-{gpu,input,input-hid,input-host,keyboard,mouse,tablet} because > >> > they're currently only implemented using PCI, so there's no immediate > >> > value in having them. It would nevertheless make sense to include th= em > >> > so they can get used already and will start to Just Work=E2=84=A2 on= s390x > >> > once a CCW implementation appears. I can post the corresponding patch > >> > if there's any interest. [For laughs and giggles, I have wired up all of these devices for ccw. Excluding input-host (for which I did not have a suitable evdev), I can specify the various devices on the commandline and get some devices in the guest which do... nothing :) I won't pursue this further for now, as I currently don't have a convincing use case beyond "because we can".] > >>=20 > >> I guess that's for the virtio people to decide. I'm cc'ing some. > > > > What would the error look like if one decided to use e.g. virtio-gpu on > > s390x? If the error is more specific (i.e. virtio-gpu-ccw does not > > exist vs. virtio-gpu does not exist), I think adding the aliases makes > > sense: the user sees what is actually missing. >=20 > Interesting point. Indeed, if we already define the matching -ccw > aliases, the error message may be slightly more useful: >=20 > silbe@oc4731375738:~/recoverable/qemu$ s390x-softmmu/qemu-system-s390x -d= evice virtio-gpu > qemu-system-s390x: -device virtio-gpu: 'virtio-gpu-ccw' is not a valid de= vice model name >=20 > Though we should probably at least add a comment to the alias list > mentioning that this is intentional. We might even want to adjust > qdev_get_device_class() to print a more specific error message in this > case. qemu-system-s390x: -device virtio-gpu: 'virtio-gpu' (alias 'virtio-gpu-ccw'= ) is not a valid device model name would make it obvious that some alias expansion had been going on. I think that would be useful.