Received: from eggs.gnu.org ([2001:4830:134:3::10]:38474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c75PG-0002rm-9V for qemu-devel@nongnu.org; Wed, 16 Nov 2016 13:58:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c75PD-0005FF-7H for qemu-devel@nongnu.org; Wed, 16 Nov 2016 13:58:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36340) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c75PD-0005F3-2b for qemu-devel@nongnu.org; Wed, 16 Nov 2016 13:57:59 -0500 From: Eduardo Habkost Date: Wed, 16 Nov 2016 16:57:42 -0200 Message-Id: <1479322664-2253-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH for-2.9 0/2] qom, qdev: Cleanup release functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Markus Armbruster , =?UTF-8?q?Andreas=20F=C3=A4rber?= 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