Skip to content

globals: Clean up validation and error checking

Eduardo Habkost qemu-devel 2 versions – Applied

Status from this message: Applied to machine-next, after editing commit message.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 25 repliesApplied
  2. v110 patches 16 repliesSuperseded

Changes in v2 from the cover letter

* Fix test-qdev-global-props unit test
* Remove subprocess code and "nouser" test case
* Reported-by: Igor Mammedov <[email protected]>
* Reword doc comments for GlobalProperty::errp
* Suggested-by: Markus Armbruster <[email protected]>
* Squashed "Use error_prepend() for errors applying globals" and "qdev: GlobalProperty.errp field"
* Suggested-by: Markus Armbruster <[email protected]>
* Simplify object_class_dynamic_cast(oc, TYPE_DEVICE) checks
* Suggested-by: Markus Armbruster <[email protected]>
* New patch: "qdev: Remove qdev_prop_register_global_list()"

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10qdev: Don't stop applying globals on first errorhw/core/qdev-properties.c+0 -12 replies
2/10qdev: Eliminate qemu_add_globals() functionhw/core/qdev-properties-system.c include/qemu/config-file.h vl.c+16 -221 reply
3/10vl: Reject invalid class names on -globalhw/core/qdev-properties.c tests/test-qdev-global-props.c vl.c+17 -204 replies
4/10qdev: GlobalProperty.errp fieldhw/core/qdev-properties.c include/hw/qdev-core.h+12 -33 replies
5/10machine: Add machine_register_compat_props() functionhw/core/machine.c include/hw/boards.h vl.c+19 -71 reply
6/10vl: Set errp to &error_abort on machine compat_propshw/core/machine.c+2 -01 reply
7/10qdev: Eliminate "global not used" warninghw/core/qdev-properties.c include/hw/qdev-properties.h tests/test-qdev-global-props.c +1 more+4 -823 replies
8/10qdev: Eliminate GlobalProperty 'used' and 'user_provided' fieldshw/core/qdev-properties.c include/hw/qdev-core.h tests/test-qdev-global-props.c +1 more+4 -441 reply
9/10qdev: Remove qdev_prop_register_global_list()hw/core/qdev-properties.c include/hw/qdev-properties.h tests/test-qdev-global-props.c+6 -162 replies
10/10machine: Skip global registration for non-existing classeshw/core/machine.c+8 -05 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchMarkus ArmbrusterMarcel ApfelbaumIgor Mammedov
1/10R-b R-b R-b
2/10R-b R-b
3/10R-b
4/10R-b R-b
5/10R-b R-b
6/10R-b R-b
7/10R-b
8/10R-b
9/10R-b R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/10] globals: Clean up validation and error checking

This series includes multiple changes to the way errors are handled by the global property system.

Git tree:
https://github.com/ehabkost/qemu-hacks.git work/global-error-handling

Changes v1 -> v2:
* Fix test-qdev-global-props unit test
* Remove subprocess code and "nouser" test case
* Reported-by: Igor Mammedov <[email protected]>
* Reword doc comments for GlobalProperty::errp
* Suggested-by: Markus Armbruster <[email protected]>
* Squashed "Use error_prepend() for errors applying globals" and "qdev: GlobalProperty.errp field"
* Suggested-by: Markus Armbruster <[email protected]>
* Simplify object_class_dynamic_cast(oc, TYPE_DEVICE) checks
* Suggested-by: Markus Armbruster <[email protected]>
* New patch: "qdev: Remove qdev_prop_register_global_list()"

Eduardo Habkost (10):
qdev: Don't stop applying globals on first error
qdev: Eliminate qemu_add_globals() function
vl: Reject invalid class names on -global
qdev: GlobalProperty.errp field
machine: Add machine_register_compat_props() function
vl: Set errp to &error_abort on machine compat_props
qdev: Eliminate "global not used" warning
qdev: Eliminate GlobalProperty 'used' and 'user_provided' fields
qdev: Remove qdev_prop_register_global_list()
machine: Skip global registration for non-existing classes

 hw/core/machine.c                |  26 +++++++++
 hw/core/qdev-properties-system.c |  21 +------
 hw/core/qdev-properties.c        |  55 +++----------------
 include/hw/boards.h              |   1 +
 include/hw/qdev-core.h           |   9 ++-
 include/hw/qdev-properties.h     |   2 -
 include/qemu/config-file.h       |   1 -
 tests/test-qdev-global-props.c   | 115 ++++-----------------------------------
 vl.c                             |  37 ++++++++++---
 9 files changed, 80 insertions(+), 187 deletions(-)
Signature · 1 line
2.5.5