Re: [PATCH 1/2] test-char: Destroy chardev correctly at char_file_test_internal()

2020-12-16 Thread Alex Bennée
Eduardo Habkost writes: > commit 1e419ee68fa5 ("chardev: generate an internal id when none > given") changed the reference ownership semantics of > qemu_chardev_new(NULL, ...): now all chardevs created using > qemu_chardev_new() are added to the /chardevs QOM container, and > the caller does

Re: [PATCH 1/2] test-char: Destroy chardev correctly at char_file_test_internal()

2020-12-15 Thread Marc-André Lureau
On Wed, Dec 16, 2020 at 2:41 AM Eduardo Habkost wrote: > commit 1e419ee68fa5 ("chardev: generate an internal id when none > given") changed the reference ownership semantics of > qemu_chardev_new(NULL, ...): now all chardevs created using > qemu_chardev_new() are added to the /chardevs QOM

[PATCH 1/2] test-char: Destroy chardev correctly at char_file_test_internal()

2020-12-15 Thread Eduardo Habkost
commit 1e419ee68fa5 ("chardev: generate an internal id when none given") changed the reference ownership semantics of qemu_chardev_new(NULL, ...): now all chardevs created using qemu_chardev_new() are added to the /chardevs QOM container, and the caller does not own a reference to the newly