From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yb7yU-0000TM-VO for qemu-devel@nongnu.org; Thu, 26 Mar 2015 09:37:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yb7yN-0004sZ-Pe for qemu-devel@nongnu.org; Thu, 26 Mar 2015 09:37:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yb7yN-0004sG-I4 for qemu-devel@nongnu.org; Thu, 26 Mar 2015 09:37:23 -0400 Message-ID: <55140B89.9080703@redhat.com> Date: Thu, 26 Mar 2015 14:37:13 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1427105442-23484-1-git-send-email-lma@suse.com> <551001E3.3010304@redhat.com> <55101163.6050201@suse.de> <20150323143051.4cab2004@nial.brq.redhat.com> <5512D8A2.3030100@suse.com> <20150326110529.5f158af3@nial.brq.redhat.com> <5513DA5F.6060906@suse.de> <20150326112921.446ec973@nial.brq.redhat.com> In-Reply-To: <20150326112921.446ec973@nial.brq.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] object: Add can_be_deleted callback to TypeInfo and TypeImpl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: peter.crosthwaite@xilinx.com, qemu-devel@nongnu.org, Lin Ma On 26/03/2015 11:29, Igor Mammedov wrote: > What value of ref, one would use to decide if deletion is possible? > > In generic case object can have ref > 1 but still be eligible for deleting > via object-del. Right, for example devices are unparented with ref > 1. Still, it could be a sane default implementation. It doesn't even need a function pointer until someone comes up with an object that has different needs. Paolo