qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/2] Fixes/tests for hmp_object_del()
@ 2016-12-09 18:04 Michael Roth
  2016-12-09 18:04 ` [Qemu-devel] [PATCH v3 1/2] tests: check-qom-proplist: add checks for cmdline-created objects Michael Roth
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Michael Roth @ 2016-12-09 18:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru, bharata.rao, dgilbert, david

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 v3:
  - 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 v2:

  - 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

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

end of thread, other threads:[~2016-12-15 17:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-09 18:04 [Qemu-devel] [PATCH v3 0/2] Fixes/tests for hmp_object_del() Michael Roth
2016-12-09 18:04 ` [Qemu-devel] [PATCH v3 1/2] tests: check-qom-proplist: add checks for cmdline-created objects Michael Roth
2016-12-09 18:04 ` [Qemu-devel] [PATCH v3 2/2] monitor: fix object_del for command-line-created objects Michael Roth
2016-12-12 15:53   ` Markus Armbruster
2016-12-15 17:25     ` Michael Roth
2016-12-12 15:53 ` [Qemu-devel] [PATCH v3 0/2] Fixes/tests for hmp_object_del() Markus Armbruster

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).