spapr: Implement interface to fix device pathname
commit71461b0fef53467d2a85dbd72304dba0e01d8370
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 17 Mar 2014 02:40:27 +0000 (17 13:40 +1100)
committerAndreas Färber <afaerber@suse.de>
Thu, 20 Mar 2014 01:40:26 +0000 (20 02:40 +0100)
treeb08d047217e96574af9b4f8e066f136017ce8c2b
parent29ee324740fa7af4b7cf0ce9295a07296e9a0f24
spapr: Implement interface to fix device pathname

This extends the pseries machine type with the interface to fix firmware
pathnames for devices which have @bootindex property.

This fixes SCSI disks' device node names (which are wildcard nodes in
the device-tree), for spapr-vscsi, virtio-scsi and usb-storage.

This fixes PHB name from "pci" to "pci@XXXX" where XXXX is a BUID as
there is no bus on top of sPAPRPHBState where PHB firmware name could
be fixed using the BusClass::get_fw_dev_path() mechanism.

This stores the boot list in the /chosen/qemu,boot-list property of
the device tree. "\n" are replaced by spaces to support OF1275.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/ppc/spapr.c