From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R45Tr-0001Lm-4A for qemu-devel@nongnu.org; Thu, 15 Sep 2011 02:31:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R45Tq-0001R9-2i for qemu-devel@nongnu.org; Thu, 15 Sep 2011 02:31:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R45Tp-0001Qv-S5 for qemu-devel@nongnu.org; Thu, 15 Sep 2011 02:31:26 -0400 Date: Thu, 15 Sep 2011 09:31:21 +0300 From: Gleb Natapov Message-ID: <20110915063121.GW21417@redhat.com> References: <4E70EC90.8000904@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E70EC90.8000904@us.ibm.com> Subject: Re: [Qemu-devel] [RFC] Plan for moving forward with QOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , Jan Kiszka , qemu-devel , Markus Armbruster , Gerd Hoffmann , "Edgar E. Iglesias" On Wed, Sep 14, 2011 at 01:04:00PM -0500, Anthony Liguori wrote: > All device relationships are identified as named properties. A QOM > path name > consists of a named device, followed by a series of properties which > may or may > not refer to other devices. For instance, all of the following are > valid paths: > > /i440fx/piix3/i8042/aux > /i440fx/slot[1.0]/i8042/aux > /i440fx/slot[1.0]/bus/piix3/i8042/aux > Have you looked at device paths generated by get_fw_dev_path() in qdev? This function generates Open Firmware device path. The difference between OF device path and the examples above is that OF device path has a meaning outside of QEMU and can be used by firmware to find a device a path refers too. Will QOM be able to generate them? The paths look like: /pci@i0cf8/ide@1,1/drive@1/disk@0 /pci@i0cf8/isa@1/fdc@03f1/floppy@1 /pci@i0cf8/isa@1/fdc@03f1/floppy@0 /pci@i0cf8/ide@1,1/drive@1/disk@1 /pci@i0cf8/ide@1,1/drive@0/disk@0 /pci@i0cf8/scsi@3/disk@0,0 /pci@i0cf8/ethernet@4/ethernet-phy@0 /pci@i0cf8/ethernet@5/ethernet-phy@0 /pci@i0cf8/ide@1,1/drive@0/disk@1 /pci@i0cf8/isa@1/ide@01e8/drive@0/disk@0 /pci@i0cf8/usb@1,2/network@0/ethernet@0 /pci@i0cf8/usb@1,2/hub@1/network@0/ethernet@0 /rom@genroms/linuxboot.bin For isa machines: /isa/ide@0170/drive@0/disk@0 /isa/fdc@03f1/floppy@1 /isa/fdc@03f1/floppy@0 /isa/ide@0170/drive@0/disk@1 -- Gleb.