From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StpJP-0003zL-Lp for qemu-devel@nongnu.org; Tue, 24 Jul 2012 20:18:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StpJO-0005v1-N4 for qemu-devel@nongnu.org; Tue, 24 Jul 2012 20:18:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StpJO-0005uv-F7 for qemu-devel@nongnu.org; Tue, 24 Jul 2012 20:18:46 -0400 From: Laszlo Ersek Date: Wed, 25 Jul 2012 02:19:53 +0200 Message-Id: <1343175595-7944-1-git-send-email-lersek@redhat.com> In-Reply-To: <87r4s25vs8.fsf@blackfin.pond.sub.org> References: <87r4s25vs8.fsf@blackfin.pond.sub.org> Subject: [Qemu-devel] [PATCH v2 0/2] assorted device path formatting cleanups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, armbru@redhat.com, peter.maydell@linaro.org, lersek@redhat.com As long as "two" qualifies as "assorted". v1->v2: - abandon original "idea", allocate sufficient memory for OFW device path formatting [Markus] - all bus formatters should rely on glib for dynamic allocation [Peter] Tested with an OVMF debug patch that grabs and logs the "bootorder" fw_cfg file: /pci@i0cf8/ide@1,1/drive@0/disk@0 /pci@i0cf8/ide@1,1/drive@1/disk@0 /pci@i0cf8/isa@1/fdc@03f0/floppy@0 /pci@i0cf8/ethernet@3/ethernet-phy@0 Laszlo Ersek (2): accomodate OpenFirmware device paths in sufficient storage get_fw_dev_path() impls should allocate memory with glib functions hw/ide/qdev.c | 2 +- hw/isa-bus.c | 2 +- hw/pci.c | 2 +- hw/qdev.c | 54 +++++++++++++++++++++++++++++++++++++++++++----------- hw/scsi-bus.c | 2 +- hw/sysbus.c | 2 +- 6 files changed, 48 insertions(+), 16 deletions(-)