On 18/07/2018 23:13, Mark Cave-Ayland wrote: > One option may be to consider subclassing IDEBus and overriding > idebus_get_fw_dev_path() there, but the cmd646 device is a child of > TYPE_PCI_IDE which has its own internal IDEBus and so it seems > overriding it is impossible.
It's possible as long as you don't add any members. You can add a new const char* argument to ide_bus_new, and call it from cmd646. However, another possibility is to implement the FWPathProvider interface in the sun4u machine type. See hw/ppc/spapr.c for an example. Thanks, Paolo