diff options
author | Peter Maydell | 2021-03-25 16:33:08 +0100 |
---|---|---|
committer | Peter Maydell | 2021-04-06 12:49:14 +0200 |
commit | 0fb124dbfa135945fb892d0d2b7a427cdc59220d (patch) | |
tree | a15eeb324467b89df7b34a5a405076c04a0d6b78 /include/qemu/error-report.h | |
parent | include/hw/boards.h: Document machine_class_allow_dynamic_sysbus_dev() (diff) | |
download | qemu-0fb124dbfa135945fb892d0d2b7a427cdc59220d.tar.gz qemu-0fb124dbfa135945fb892d0d2b7a427cdc59220d.tar.xz qemu-0fb124dbfa135945fb892d0d2b7a427cdc59220d.zip |
machine: Provide a function to check the dynamic sysbus allowlist
Provide a new function dynamic_sysbus_dev_allowed() which checks the
per-machine list of permitted dynamic sysbus devices and returns a
boolean result indicating whether the device is allowed. We can use
this in the implementation of validate_sysbus_device(), but we will
also need it so that machine hotplug callbacks can validate devices
rather than assuming that any sysbus device might be hotpluggable
into the platform bus.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-id: 20210325153310.9131-3-peter.maydell@linaro.org
Diffstat (limited to 'include/qemu/error-report.h')
0 files changed, 0 insertions, 0 deletions