Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLdxK-0003qE-Cr for qemu-devel@nongnu.org; Tue, 30 Jun 2009 10:05:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLdxF-0003ic-JQ for qemu-devel@nongnu.org; Tue, 30 Jun 2009 10:05:05 -0400 Received: from [199.232.76.173] (port=36009 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLdxF-0003iC-9B for qemu-devel@nongnu.org; Tue, 30 Jun 2009 10:05:01 -0400 Received: from mx2.redhat.com ([66.187.237.31]:49856) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLdxE-0005YB-NZ for qemu-devel@nongnu.org; Tue, 30 Jun 2009 10:05:00 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5UE4xCL021068 for ; Tue, 30 Jun 2009 10:04:59 -0400 From: Juan Quintela In-Reply-To: <1246361503-18254-1-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Tue\, 30 Jun 2009 13\:31\:43 +0200") References: <1246361503-18254-1-git-send-email-kraxel@redhat.com> Date: Tue, 30 Jun 2009 16:03:28 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [RfC PATCH] qdev: rework device properties. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Gerd Hoffmann wrote: > Early RfC patch. Not functional yet. Just for comments right now. > > Overall plan: > * drop property lists. The properties are saved directly in the > device state structs instead. > * drop qdev_get_prop* functions, not needed any more. > * replace qdev_set_prop* functions by qdev_prop_{parse,set*}. > > Done: > * added code to handle properties. > > Todo: > * convert all the device drivers. > * actually drop the old functions. Any good reason why you remove the list of propierties? What I want to do, to make usb modular I need two things: a- a way to defino an alias, that "mouse" is equivalent to "QEMU USB Keyboard". One is the qdev name and the other is the name passed to --usbdevice name. b- things like disk are composed of: "disk" : "rest of disk arguments" My plan was to add both of them as properties or similar. Any better idea? I can put it in one struct or similar, but it is not trivial to find where to put things really, because the "mouse" part is filled in usb-hid.c or equivalent, and the "disk" arguments part is filled in vl.c Later, Juan.