From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MijRq-00018B-0U for qemu-devel@nongnu.org; Wed, 02 Sep 2009 02:36:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MijRl-00017z-7h for qemu-devel@nongnu.org; Wed, 02 Sep 2009 02:36:01 -0400 Received: from [199.232.76.173] (port=38919 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MijRl-00017w-1H for qemu-devel@nongnu.org; Wed, 02 Sep 2009 02:35:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43597) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MijRk-0002eU-KB for qemu-devel@nongnu.org; Wed, 02 Sep 2009 02:35:56 -0400 Message-ID: <4A9E1247.9040009@redhat.com> Date: Wed, 02 Sep 2009 08:35:51 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH, RFC 0/5] Improve device info handling References: <4A9B85E5.8040902@redhat.com> <4A9CD334.6000407@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel Hi, >> drives are host side state, they don't go into qdev. > > My idea was that boards (like pc) should be in the long run > represented by a qdev. The qdev root is the main_system_bus right now, I don't see a need to change that. All core devices (cpus, memory, pic, ...) can be children of the main system bus. > But shouldn't the drives, network and char devices be qdevs too, > wouldn't it help the metamachine (or "pc" device)? We have to clearly separate between host state and guest state. qdev is about guest state. A disk has two sides: The host side (virtual drive foo is a lvm volume in raw format / a file in qcow2 format / a iso image / whatever else) and the guest side (this virtual drive is a master ide disk / scsi disk with id 3 / virtio disk / ...). Only the later is represented by qdev. The link between the two is a property. Likewise for chardevs and network. cheers, Gerd