qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-2.9 0/2] qom, qdev: Cleanup release functions
@ 2016-11-16 18:57 Eduardo Habkost
  2016-11-16 18:57 ` [Qemu-devel] [PATCH for-2.9 1/2] qom: Remove release function from class properties Eduardo Habkost
  2016-11-16 18:57 ` [Qemu-devel] [PATCH for-2.9 2/2] qdev: Change signature of PropertyInfo::release Eduardo Habkost
  0 siblings, 2 replies; 8+ messages in thread
From: Eduardo Habkost @ 2016-11-16 18:57 UTC (permalink / raw)
  To: qemu-devel, Markus Armbruster, Andreas Färber

While working on the qdev class properteis series, I've noticed
that the release function for class properties is never called,
and have unclear semantics (should it be called when the object
is destroyed, or when the class is destroyed?). Patch 1/1 removes
the unused feature.

Patch 2/2 changes the function signature of qdev property release
functions to make their implementations simpler and safer, and
make them not depend on the way property release functions are
implemented (so the functions don't need to be rewritten if we
change qdev to use class properties).

Eduardo Habkost (2):
  qom: Remove release function from class properties
  qdev: Change signature of PropertyInfo::release

 backends/hostmem.c               |  4 ++--
 hw/core/machine.c                |  6 +++---
 hw/core/qdev-properties-system.c |  8 ++------
 hw/core/qdev-properties.c        | 10 +++++-----
 hw/core/qdev.c                   | 10 +++++++++-
 hw/i386/pc.c                     |  8 ++++----
 hw/ppc/pnv.c                     |  2 +-
 include/hw/qdev-core.h           |  2 +-
 include/qom/object.h             |  1 -
 qom/object.c                     | 14 ++++----------
 10 files changed, 31 insertions(+), 34 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2016-11-17 14:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-16 18:57 [Qemu-devel] [PATCH for-2.9 0/2] qom, qdev: Cleanup release functions Eduardo Habkost
2016-11-16 18:57 ` [Qemu-devel] [PATCH for-2.9 1/2] qom: Remove release function from class properties Eduardo Habkost
2016-11-17 12:33   ` Markus Armbruster
2016-11-17 13:36     ` Eduardo Habkost
2016-11-17 14:45       ` Markus Armbruster
2016-11-16 18:57 ` [Qemu-devel] [PATCH for-2.9 2/2] qdev: Change signature of PropertyInfo::release Eduardo Habkost
2016-11-17 12:26   ` Markus Armbruster
2016-11-17 13:40     ` Eduardo Habkost

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