Received: from eggs.gnu.org ([2001:4830:134:3::10]:49151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aihf9-0007Ow-Id for qemu-devel@nongnu.org; Wed, 23 Mar 2016 08:13:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aihf5-0006mN-GR for qemu-devel@nongnu.org; Wed, 23 Mar 2016 08:13:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aihf5-0006mI-Au for qemu-devel@nongnu.org; Wed, 23 Mar 2016 08:13:19 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 087377AE95 for ; Wed, 23 Mar 2016 12:13:18 +0000 (UTC) From: Markus Armbruster References: <1456151945-11225-1-git-send-email-pbonzini@redhat.com> <1456151945-11225-4-git-send-email-pbonzini@redhat.com> <87k2kvzu0z.fsf@blackfin.pond.sub.org> <56F01F8A.2090902@redhat.com> <87shzj68n2.fsf@blackfin.pond.sub.org> <56F030B3.3070709@redhat.com> <87fuvj1ywx.fsf@blackfin.pond.sub.org> <20160322081910.GA4222@noname.redhat.com> <87d1qmreqz.fsf@blackfin.pond.sub.org> <56F1C220.4000705@redhat.com> <87wpotblh9.fsf@blackfin.pond.sub.org> <56F26485.7050000@redhat.com> Date: Wed, 23 Mar 2016 13:13:16 +0100 In-Reply-To: <56F26485.7050000@redhat.com> (Paolo Bonzini's message of "Wed, 23 Mar 2016 10:40:21 +0100") Message-ID: <878u198k9v.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 3/3] block: remove legacy_dinfo at blk_detach_dev time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Kevin Wolf , qemu-devel@nongnu.org, Max Reitz Paolo Bonzini writes: > On 23/03/2016 10:18, Markus Armbruster wrote: >>> In Kevin's idea there would be no ownership either way. Until then, I >>> think my patch actually gets us closer to the ideal. >> >> I'm afraid it gets us closer to where we used to be six years ago :) >> >> Qdev drive properties used to point to a DriveInfo, and the DriveInfo >> pointed to BlockDriverState. Commit f8b6cc0 cut out the DriveInfo >> middleman. This was a tiny step towards DriveInfo-less blockdev-add. >> >> DriveInfo is legacy configuration. Tacking it to BlockBackend is simple >> and convenient. If it ceases to be simple and convenient, we can try to >> find another home. But it really has no life of its own! > > I disagree; the life of DriveInfo is exactly the same as the -drive > QemuOpts. But anyway, with your idea of adding an unrealize callback to > the drive properties, I can move the extra reference within the device. > It should become cleaner. I guess discussing the finer semantic points some more wouldn't be productive now. Instead, you do a v2, and then we'll see. Working code can make philosophical differences evaporate :) Okay?