qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Dynamic sysbus device check error report
@ 2021-10-29 14:22 Damien Hedde
  2021-10-29 14:22 ` [PATCH v3 1/3] machine: add device_type_is_dynamic_sysbus function Damien Hedde
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Damien Hedde @ 2021-10-29 14:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Damien Hedde, Daniel P. Berrangé, Eduardo Habkost,
	mark.burton, edgari, mirela.grujic, Alistair Francis, Ani Sinha,
	Paolo Bonzini, Philippe Mathieu-Daudé

Hi,

Dynamic sysbus devices are allowed by a per-machine basis.
Right now, the allowance check is done during an machine_init_done
notifier, well after such devices are created.

This series move the check at the right place (during the handling
of a QMP device_add command or -device CLI option) so that we can
report the error right away.

This was initially part of my RFC (hence the v3) about allowing to
create devices during the machine initialized phase (link is below).
But it seems to me these patches make sense already as a standalone
cleanup.

Only patch 1 miss a review.

Thanks,
Damien

v3:
 + standalone series
 + minor tweaks

v2 was part of:
https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg05683.html

Damien Hedde (3):
  machine: add device_type_is_dynamic_sysbus function
  qdev-monitor: Check sysbus device type before creating it
  machine: remove the done notifier for dynamic sysbus device type check

 include/hw/boards.h    | 16 +++++++++++++++-
 hw/core/machine.c      | 40 ++++++++++------------------------------
 softmmu/qdev-monitor.c | 11 +++++++++++
 3 files changed, 36 insertions(+), 31 deletions(-)

-- 
2.33.0



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-11-01 19:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-29 14:22 [PATCH v3 0/3] Dynamic sysbus device check error report Damien Hedde
2021-10-29 14:22 ` [PATCH v3 1/3] machine: add device_type_is_dynamic_sysbus function Damien Hedde
2021-10-29 17:25   ` Philippe Mathieu-Daudé
2021-10-31 23:36   ` Alistair Francis
2021-10-29 14:22 ` [PATCH v3 2/3] qdev-monitor: Check sysbus device type before creating it Damien Hedde
2021-10-29 17:34   ` Philippe Mathieu-Daudé
2021-10-29 18:13     ` Philippe Mathieu-Daudé
2021-10-29 14:22 ` [PATCH v3 3/3] machine: remove the done notifier for dynamic sysbus device type check Damien Hedde
2021-10-29 19:59   ` Philippe Mathieu-Daudé
2021-10-29 20:00 ` [PATCH v3 0/3] Dynamic sysbus device check error report Philippe Mathieu-Daudé
2021-11-01 15:18 ` Eduardo Habkost
2021-11-01 18:30 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).