From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDaeh-00022d-6r for qemu-devel@nongnu.org; Mon, 17 Sep 2012 08:42:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDaeZ-0006eb-Dz for qemu-devel@nongnu.org; Mon, 17 Sep 2012 08:42:27 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:34890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDaeZ-0006eO-7c for qemu-devel@nongnu.org; Mon, 17 Sep 2012 08:42:19 -0400 Received: by dadn15 with SMTP id n15so149562dad.4 for ; Mon, 17 Sep 2012 05:42:17 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <50571AA0.4070503@redhat.com> Date: Mon, 17 Sep 2012 14:42:08 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1347876042-22609-1-git-send-email-e.voevodin@samsung.com> <1347876042-22609-5-git-send-email-e.voevodin@samsung.com> In-Reply-To: <1347876042-22609-5-git-send-email-e.voevodin@samsung.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v2 04/12] hw/qdev-properties.c: Add "transport" property. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Evgeny Voevodin Cc: peter.maydell@linaro.org, kyungmin.park@samsung.com, qemu-devel@nongnu.org, aliguori@us.ibm.com Il 17/09/2012 12:00, Evgeny Voevodin ha scritto: > Virtio back-end devices can be plugged into both transports: > VIRTIO_PCI and VIRTIO_MMIO. In order to choose the desired > transport we have a property "transport" in every back-end > state struct. By specifying -device virtio-blk-pci user chooses > VIRTIO_PCI transport and "transport" property is set automatically. > But in order to provide full control to user we need to have > "transport" property available to be set through command line: > > -device virtio-pci,id=virtio-pci.0 > -device virtio-blk,transport=virtio-pci.0,... What's the difference between this and "bus"? i.e. -device virtio-pci,id=virtio-pci-0 -device virtio-blk,bus=virtio-pci-0.0,... Paolo