This is RFC mostly due to the last patch. I'm not 100% sure my approach is sane, and there's also an unresolved FIXME. Please review.
Based-on: <20190218125615.18970-1-arm...@redhat.com> Markus Armbruster (6): qdev: Fix latent bug with compat_props and onboard devices qom: Move compat_props machinery from qdev to QOM vl: Fix latent bug with -global and onboard devices sysbus: Fix latent bug with onboard devices vl: Create block backends before setting machine properties pc: Support firmware configuration with -blockdev accel/accel.c | 1 + hw/block/pflash_cfi01.c | 5 + hw/core/qdev.c | 21 +--- hw/core/sysbus.c | 3 - hw/i386/pc.c | 4 +- hw/i386/pc_sysfw.c | 230 ++++++++++++++++++++++++++------------- include/hw/block/flash.h | 1 + include/hw/i386/pc.h | 6 +- include/hw/qdev-core.h | 2 - include/qom/object.h | 3 + qom/object.c | 39 +++++++ vl.c | 90 +++++++-------- 12 files changed, 255 insertions(+), 150 deletions(-) -- 2.17.2