From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwXY7-0001Ij-2e for qemu-devel@nongnu.org; Mon, 25 Sep 2017 13:52:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwXY2-0005eM-7L for qemu-devel@nongnu.org; Mon, 25 Sep 2017 13:52:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39242) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dwXY2-0005e0-16 for qemu-devel@nongnu.org; Mon, 25 Sep 2017 13:52:02 -0400 Date: Mon, 25 Sep 2017 14:51:41 -0300 From: Eduardo Habkost Message-ID: <20170925175141.GC3030@localhost.localdomain> References: <1506071794-4373-1-git-send-email-thuth@redhat.com> <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> 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 06:45:15PM +0100, Peter Maydell wrote: > On 25 September 2017 at 18:42, Thomas Huth wrote: > > On 25.09.2017 17:26, Peter Maydell wrote: > >> On 25 September 2017 at 16:19, Thomas Huth wrote: > >>> Not sure whether this works for the virtio-xxx-device devices, > >>> though, since they are marked as user_creatable = true currently... > >> > >> That's deliberate -- for the arm boards with virtio-mmio > >> the board creates a bunch of virtio-mmio transports and the > >> virtio-foo-device can be user created to plug into those. > > > > Yes, I know ... I'm just wondering whether the virtio-xxx-device devices > > should be non-user_creatable on the non-ARM targets, since they > > apparently can't be used with "-device" there...? > > 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). -- Eduardo