From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUh2y-0002sl-65 for qemu-devel@nongnu.org; Wed, 16 May 2012 12:26:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUh2s-00019Q-R8 for qemu-devel@nongnu.org; Wed, 16 May 2012 12:25:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUh2s-00018l-Jb for qemu-devel@nongnu.org; Wed, 16 May 2012 12:25:50 -0400 Date: Wed, 16 May 2012 19:25:44 +0300 From: "Michael S. Tsirkin" Message-ID: <20120516162544.GC10676@redhat.com> References: <1337095599-28836-1-git-send-email-anthony.perard@citrix.com> <1337095599-28836-2-git-send-email-anthony.perard@citrix.com> <20120515205222.GA12039@redhat.com> <4FB38E2E.5000508@redhat.com> <20120516132017.GB8620@redhat.com> <4FB3CD31.8050903@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FB3CD31.8050903@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/4] Introduce a new hotplug state: Force eject. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Anthony PERARD , Xen Devel , QEMU-devel , Anthony Liguori , Stefano Stabellini On Wed, May 16, 2012 at 05:52:17PM +0200, Paolo Bonzini wrote: > Il 16/05/2012 15:20, Michael S. Tsirkin ha scritto: > >>> Because it's missing the object_unparent done by qdev_unplug. Does > >>> object_unparent+qdev_free work? (I believe object_unparent should be > >>> done by qdev_free rather than qdev_unplug, but that's something for 1.2). > >> > >> Cool, this seems to work fine. Thanks. > >> > >> I'll test a bit more and resend a patch with only object_unparent+qdev_free. > > > > Separately it was suggested to make qdev_free do object_unparent > > automatically. Anthony is yet to respond. > > Yes, but for 1.1 this Xen-only patch would be nice. > > Paolo No sure which this patch is meant, the force eject is not a good idea. Freeing directly from Xen is fine. -- MST