]> git.proxmox.com Git - mirror_qemu.git/commit
qdev: Introduce FWPathProvider interface
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Mar 2014 02:40:23 +0000 (13:40 +1100)
committerAndreas Färber <afaerber@suse.de>
Thu, 20 Mar 2014 01:40:13 +0000 (02:40 +0100)
commit6b1566cbe372660c77ca4aa7aa0071fa30f5f930
treedb796cddf8483020aea4d30ef732884acd7f5e36
parent30e32af7466841f5fc08a5339e2184884a7bc6f3
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>
hw/core/Makefile.objs
hw/core/fw-path-provider.c [new file with mode: 0644]
hw/core/qdev.c
include/hw/fw-path-provider.h [new file with mode: 0644]
tests/Makefile