Received: from eggs.gnu.org ([2001:4830:134:3::10]:41993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCBuF-00038w-8u for qemu-devel@nongnu.org; Mon, 15 Oct 2018 19:04:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCBu9-0002gr-U6 for qemu-devel@nongnu.org; Mon, 15 Oct 2018 19:04:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50316) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCBu6-0002eG-2V for qemu-devel@nongnu.org; Mon, 15 Oct 2018 19:04:04 -0400 Date: Mon, 15 Oct 2018 20:03:42 -0300 From: Eduardo Habkost Message-ID: <20181015230342.GJ31060@habkost.net> References: <20181013025435.25785-1-ehabkost@redhat.com> <20181015081641.q6r5wnhm7rq5tgfh@sirius.home.kraxel.org> <20181015062543-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181015062543-mutt-send-email-mst@kernel.org> Subject: Re: [Qemu-devel] [PATCH] virtio: Provide version-specific variants of virtio PCI devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Gerd Hoffmann , qemu-devel@nongnu.org, Gonglei , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Wainer dos Santos Moschetta , Cleber Rosa , Markus Armbruster , Laine Stump , Caio Carrara On Mon, Oct 15, 2018 at 06:27:21AM -0400, Michael S. Tsirkin wrote: > On Mon, Oct 15, 2018 at 10:16:41AM +0200, Gerd Hoffmann wrote: > > On Fri, Oct 12, 2018 at 11:54:35PM -0300, Eduardo Habkost wrote: > > > The current virtio-*-pci device types actually represent 3 > > > different types of devices: > > > * virtio 1.0 non-transitional devices > > > * virtio 1.0 transitional devices > > > > Ok. > > > > > * virtio 0.9 ("legacy device" in virtio 1.0 terminology) > > > > Why? Is there any reason to prefer 0.9 over transitional? I don't know. The `disable-modern` option already exists but I don't know who would want to use it. I'm just adding a way to represent that existing feature without having another set of device types with multiple-personality disorder. > > > > cheers, > > Gerd > > Right - maybe a flag to disable modern interface is enough. > We thus get two types: > - transitional (legacy) > - non-transitional (modern) > which matches spec nicely. I would agree with the removal of virtio-*-0.9 only if we decide to drop support for disable-modern=true. If we still want to provide a legacy-only virtio device, it should be a separate device type. Without separate device types, it becomes impossible to provide meaningful device type information to management software, including but not limited to: * removal/deprecation of device types (especially important if we plan to remove virtio 0.9 support from QEMU one day) * PCI IDs * Bus compatibility information * Schema/introspection for 0.9-only or 1.0-only device options -- Eduardo