Fixes/tests for hmp_object_del()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 1 replyIn review
- v42 patches 6 repliesSuperseded
- v32 patches 3 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 6 replies | Superseded |
Changes in v5 from the cover letter
- Rebased on master and re-tested
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tests: check-qom-proplist: add checks for cmdline-created objectstests/ | +55 | 1 reply | |
| 2/2 | monitor: fix object_del for command-line-created objectsqom/ tests/ | +11 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Markus Armbruster | Daniel P. Berrange |
|---|---|---|
| 1/2 | R-b | |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v5 0/2] Fixes/tests for hmp_object_del()
hmp_object_del() followed by a subsequent hmp_object_add() can trigger a duplicate ID error if the previous object shared the same ID and was added via the command-line. Please see patch 2/2 for more details.
This patchset fixes the issue in question and adds some general unit tests for object created via -object, which we later extend to verify the fix in question.
Changes since v4:
- Rebased on master and re-tested
Changes since v3:
- Fixed up comment formating (Markus)
- Instead of segfaulting, use &error_abort if assumptions about 'object' property group existence change (Markus)
- Use g_assert_null in place of g_assert(... == NULL) (Markus)
Changes since v2:
- Moved the generic unit tests ahead of the fix patch, with a FIXME in place of the actual check for the failure addressed in patch 2/2 (Daniel/Markus)
- Dropped check for existence of objects' QemuOptsList (Markus)
- Dropped unintended whitespace removal in PATCH 1/2
- Slight rewording of commit messages to reflect the changes and fix minor grammar errors.
Changes since v1:
- Moved QemuOpt cleanup out of {qmp,hmp}_object_del() and into common user_creatable_del() path (Daniel, David)
- Added corresponding test case in check-qom-proplist