From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tiqef-0004Zq-Ir for qemu-devel@nongnu.org; Wed, 12 Dec 2012 13:03:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiqeZ-0008Bg-Ql for qemu-devel@nongnu.org; Wed, 12 Dec 2012 13:03:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiqeZ-0008Ba-Gb for qemu-devel@nongnu.org; Wed, 12 Dec 2012 13:03:31 -0500 Message-ID: <50C8C6E9.9050207@redhat.com> Date: Wed, 12 Dec 2012 19:03:21 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1355157952-2321-1-git-send-email-fred.konrad@greensocs.com> <1355157952-2321-8-git-send-email-fred.konrad@greensocs.com> <50C8C4A2.7010709@suse.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v7 7/8] virtio-pci-blk : Switch to new API. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: aliguori@us.ibm.com, e.voevodin@samsung.com, "Michael S. Tsirkin" , mark.burton@greensocs.com, qemu-devel@nongnu.org, Alexander Graf , stefanha@redhat.com, cornelia.huck@de.ibm.com, =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , fred.konrad@greensocs.com Il 12/12/2012 18:58, Peter Maydell ha scritto: > It should be equally > valid to just use the PCI transport plugged into a VirtioDevice, > both of which were created by the user with -device [and for > new transports, separate transport and backend should be the > standard]. That means the virtio-bus interface needs a way for > the backend to announce to the transport what it is so that > the PCI transport can set the right PCI IDs. There is such an interface (the device_id, aka VIRTIO_ID_*). Then virtio-pci needs a mapping from the device_id to the (default) vendor_id/device_id/class tuple. Paolo