qemu/include/system
Peter Maydell 8fd2518ef2 hw: Centralize handling of -machine dumpdtb option
Currently we handle the 'dumpdtb' machine sub-option ad-hoc in every
board model that has an FDT.  It's up to the board code to make sure
it calls qemu_fdt_dumpdtb() in the right place.

This means we're inconsistent and often just ignore the user's
command line argument:
 * if the board doesn't have an FDT at all
 * if the board supports FDT, but there happens not to be one
   present (usually because of a missing -fdt option)

This isn't very helpful because it gives the user no clue why their
option was ignored.

However, in order to support the QMP/HMP dumpdtb commands we require
now that every FDT machine stores a pointer to the FDT in
MachineState::fdt.  This means we can handle -machine dumpdtb
centrally by calling the qmp_dumpdtb() function, unifying its
handling with the QMP/HMP commands.  All the board code calls to
qemu_fdt_dumpdtb() can then be removed.

For this commit we retain the existing behaviour that if there
is no FDT we silently ignore the -machine dumpdtb option.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
2025-02-24 15:03:42 +00:00
..
accel-blocker.h
accel-ops.h
arch_init.h
balloon.h
block-backend-common.h
block-backend-global-state.h
block-backend-io.h block: Improve blk_get_attached_dev_id() docstring 2025-02-06 13:59:00 +01:00
block-backend.h
block-ram-registrar.h
blockdev.h
confidential-guest-support.h
cpu-throttle.h
cpu-timers-internal.h
cpu-timers.h
cpus.h
cryptodev-vhost-user.h
cryptodev-vhost.h
cryptodev.h
device_tree.h hw: Centralize handling of -machine dumpdtb option 2025-02-24 15:03:42 +00:00
dirtylimit.h
dirtyrate.h
dma.h
dump-arch.h
dump.h
event-loop-base.h
host_iommu_device.h
hostmem.h
hvf.h
hvf_int.h
hw_accel.h
iommufd.h
iothread.h
kvm.h
kvm_int.h
kvm_xen.h
memory_mapping.h
numa.h
nvmm.h
os-posix.h os: add an ability to lock memory on_fault 2025-02-12 11:36:01 -05:00
os-win32.h os: add an ability to lock memory on_fault 2025-02-12 11:36:01 -05:00
qtest.h tests/qtest: rename qtest_send_prefix and roll-up into qtest_send 2025-02-10 13:47:58 +00:00
replay.h
reset.h
rng-random.h
rng.h
rtc.h
runstate-action.h
runstate.h
seccomp.h
spdm-socket.h
stats.h
system.h overcommit: introduce mem-lock=on-fault 2025-02-12 11:36:13 -05:00
tcg.h
tpm.h
tpm_backend.h
tpm_util.h
vhost-user-backend.h
watchdog.h
whpx.h
xen-mapcache.h
xen.h