qdev: Introduce FWPathProvider interface
QEMU supports firmware names for all devices in the QEMU tree but some architectures expect some parts of firmware path names in different format. This introduces a firmware-pathname-change interface definition. If some machines needs to redefine the firmware path format, it has to add the TYPE_FW_PATH_PROVIDER interface to an object that is above the device on the QOM tree (typically /machine). Signed-off-by:Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by:
Andreas Färber <afaerber@suse.de>
Showing
- hw/core/Makefile.objs 1 addition, 0 deletionshw/core/Makefile.objs
- hw/core/fw-path-provider.c 51 additions, 0 deletionshw/core/fw-path-provider.c
- hw/core/qdev.c 17 additions, 1 deletionhw/core/qdev.c
- include/hw/fw-path-provider.h 47 additions, 0 deletionsinclude/hw/fw-path-provider.h
- tests/Makefile 1 addition, 0 deletionstests/Makefile
hw/core/fw-path-provider.c
0 → 100644
include/hw/fw-path-provider.h
0 → 100644
Please register or sign in to comment