Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWqoO-0006cW-CG for qemu-devel@nongnu.org; Mon, 18 Jan 2010 07:34:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWqoJ-0006a2-N3 for qemu-devel@nongnu.org; Mon, 18 Jan 2010 07:34:27 -0500 Received: from [199.232.76.173] (port=52817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWqoJ-0006Zo-86 for qemu-devel@nongnu.org; Mon, 18 Jan 2010 07:34:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56858) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWqoI-0003HF-Cx for qemu-devel@nongnu.org; Mon, 18 Jan 2010 07:34:23 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [RFC, PATCH 10/11] qdev: Add do_info_qbus and friends. References: <1261861899-1984-1-git-send-email-nathan@parenthephobia.org.uk> <1261861899-1984-11-git-send-email-nathan@parenthephobia.org.uk> <4B5439FF.7000309@redhat.com> Date: Mon, 18 Jan 2010 13:34:18 +0100 In-Reply-To: <4B5439FF.7000309@redhat.com> (Gerd Hoffmann's message of "Mon, 18 Jan 2010 11:37:51 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Nathan Baum , qemu-devel@nongnu.org Gerd Hoffmann writes: >> However, because there are both device properties and bus properties >> (really: device properties common to all devices on this bus), their >> names can clash. Device properties take precedence (see >> qdev_prop_find()). Hmm, qdev_printf() prints even overridden bus >> properties, not sure that's appropriate. Gerd? > > IMHO they must not clash. This isn't enforced in any way though. If they must not clash, then it makes no sense to invent a fancy prefix to cope with clashes, I think. Alternatively, we could declare devices overriding properties inherited from the bus a feature. Does it make any sense to show the shadowed properties then?