globals: Clean up validation and error checking
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
- v2 Latest10 patches 25 repliesApplied
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | qdev: Don't stop applying globals on first errorhw/ | +0 | 2 replies | |
| 2/10 | qdev: Eliminate qemu_add_globals() functionhw/ include/ vl.c | +16 | 1 reply | |
| 3/10 | vl: Reject invalid class names on -globalhw/ tests/ vl.c | +17 | 4 replies | |
| 4/10 | qdev: GlobalProperty.errp fieldhw/ include/ | +12 | 3 replies | |
| 5/10 | machine: Add machine_register_compat_props() functionhw/ include/ vl.c | +19 | 1 reply | |
| 6/10 | vl: Set errp to &error_abort on machine compat_propshw/ | +2 | 1 reply | |
| 7/10 | qdev: Eliminate "global not used" warninghw/ include/ tests/ +1 more | +4 | 3 replies | |
| 8/10 | qdev: Eliminate GlobalProperty 'used' and 'user_provided' fieldshw/ include/ tests/ +1 more | +4 | 1 reply | |
| 9/10 | qdev: Remove qdev_prop_register_global_list()hw/ include/ tests/ | +6 | 2 replies | |
| 10/10 | machine: Skip global registration for non-existing classeshw/ | +8 | 5 replies |
Reviews trailers per patch
All 10 patches have a Reviewed-by or Acked-by.
| Patch | Markus Armbruster | Marcel Apfelbaum | Igor Mammedov |
|---|---|---|---|
| 1/10 | R-b R-b | R-b | |
| 2/10 | R-b | R-b | |
| 3/10 | R-b | ||
| 4/10 | R-b | R-b | |
| 5/10 | R-b | R-b | |
| 6/10 | R-b | R-b | |
| 7/10 | R-b | ||
| 8/10 | R-b | ||
| 9/10 | R-b | R-b | |
| 10/10 | R-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.
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