From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwXzr-0003Qh-9G for qemu-devel@nongnu.org; Mon, 25 Sep 2017 14:20:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwXzm-0002H4-CM for qemu-devel@nongnu.org; Mon, 25 Sep 2017 14:20:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49928) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dwXzm-0002Gl-6K for qemu-devel@nongnu.org; Mon, 25 Sep 2017 14:20:42 -0400 Date: Mon, 25 Sep 2017 15:20:31 -0300 From: Eduardo Habkost Message-ID: <20170925182031.GF3030@localhost.localdomain> References: <20170925135316.74fed6da.cohuck@redhat.com> <20170925133153.GZ3030@localhost.localdomain> <20170925154647.357047b9@nial.brq.redhat.com> <20170925143439.GA3030@localhost.localdomain> <59e890ab-45e4-fe8a-a8de-3c441de19080@redhat.com> <20170925175141.GC3030@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2] qdev: Mark devices as non-hotpluggable by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Thomas Huth , Igor Mammedov , Cornelia Huck , QEMU Developers , Paolo Bonzini , Xiao Guangrong , "Michael S. Tsirkin" , Marcel Apfelbaum , Christian Borntraeger , Gerd Hoffmann , Stefano Stabellini , Anthony Perard , David Hildenbrand , David Gibson , Bharata B Rao , Amit Shah On Mon, Sep 25, 2017 at 07:02:06PM +0100, Peter Maydell wrote: > On 25 September 2017 at 18:51, Eduardo Habkost wrote: > > On Mon, Sep 25, 2017 at 06:45:15PM +0100, Peter Maydell wrote: > >> You should be able to on the command line for x86 do something > >> like -device virtio-pci,... -device virtio-foo-device,... > >> to manually create the pci transport and the backend. > > > > virtio-pci is abstract, so this is not possible. (The same > > applies to virtio-ccw-device). > > Did I use the wrong device name? I meant the transport > layer device (which virtio-pci-blk creates along with > virtio-blk-device internally), not the abstract device > that's a base class for the pci devices. AFAIK, virtio-pci/virtio-pci-blk itself is the transport layer device. Internally, it creates two objects: a virtio-pci-bus (which is a 1-device bus, not creatable using -device), and a virtio-blk-device attached to that bus. -- Eduardo