Received: from eggs.gnu.org ([2001:4830:134:3::10]:56637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6UdF-0003E6-DK for qemu-devel@nongnu.org; Tue, 08 Dec 2015 21:37:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6UdE-0003dC-GW for qemu-devel@nongnu.org; Tue, 08 Dec 2015 21:37:29 -0500 Date: Wed, 9 Dec 2015 10:37:16 +0800 From: Stefan Hajnoczi Message-ID: <20151209023716.GA22280@stefanha-x1.localdomain> References: <1449485967-19240-1-git-send-email-famz@redhat.com> <20151207122949.72abc5ce.cornelia.huck@de.ibm.com> <20151207130240.GH32154@ad.usersys.redhat.com> <5665A36B.1060502@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Nq2Wo0NMKNjxTN9z" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] virtio-blk: Drop x-data-plane option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Kevin Wolf , Fam Zheng , Qemu-block , QEMU Developers , Cornelia Huck , Paolo Bonzini --Nq2Wo0NMKNjxTN9z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 07, 2015 at 05:10:26PM +0000, Peter Maydell wrote: > On 7 December 2015 at 15:19, Paolo Bonzini wrote: > > > > > > On 07/12/2015 14:02, Fam Zheng wrote: > >> On Mon, 12/07 12:29, Cornelia Huck wrote: > >>> On Mon, 7 Dec 2015 18:59:27 +0800 > >>> Fam Zheng wrote: > >>> > >>>> The official way of enabling dataplane is through the "iothread" > >>>> property that references an iothread object created by "-object > >>>> iothread". Since the old "x-data-plane=3Don" way now even crashes, = it's > >>>> probably easier to just drop it: > >>>> > >>>> $ qemu-system-x86_64 -drive file=3Dnull-co://,id=3Dd0,if=3Dnone \ > >>>> -device virtio-blk-pci,drive=3Dd0,x-data-plane=3Don > >>>> > >>>> ERROR:/home/fam/work/qemu/qom/object.c:1515: > >>>> object_get_canonical_path_component: assertion failed: (obj->parent = !=3D NULL) > >>>> Aborted > >>> > >>> Do we understand yet why this crashes, btw? > >> > >> I think it's because with x-data-plane=3Don, virtio-blk initialize an = object that > >> doesn't have a parent, therefore it doesn't have a valid "canonical pa= th > >> component" thing, which is different from objects created with "-objec= t" CLI. > >> I'm not very familiar with the QOM semantics here. > >> > >>> > >>>> > >>>> Signed-off-by: Fam Zheng > >>>> --- > >>>> hw/block/dataplane/virtio-blk.c | 15 ++------------- > >>>> hw/block/virtio-blk.c | 1 - > >>>> include/hw/virtio/virtio-blk.h | 1 - > >>>> 3 files changed, 2 insertions(+), 15 deletions(-) > >>>> > >>> > >>> No general objection to removing x-data-plane; but this probably wants > >>> a mention on the changelog as x-data-plane has been described in > >>> various howtos etc. over the years. > >> > >> Yes, that is a good point. I don't know if it's too rushing in removi= ng it for > >> 2.5 (this is just posted as one option) and we'll have to count on QOM= experts > >> for the fix, if it is. > > > > The solution would be to add object_property_add_child to > > virtio_blk_data_plane_create, between object_initialize and > > user_creatable_complete. But I think this patch is ok for 2.5. >=20 > Paolo asked me to apply this to master, so I have done so. Okay. I will do my best to communicate that x-data-plane is gone. Stefan --Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWZ5PcAAoJEJykq7OBq3PIu9cH/1BodEXYoDTGdP7bBtWxA4RS yZqerzPPwoVVSRMk20wQ74pibj7KNmCiXN0lID7Pdw6LtdI7n3jpK3enuIX4PUXZ Uasjpr85sJOu0DXExUz+SE19Q9nyBiWKNv6RdsXbZnSZM5DjDYru5/KSMoZnxUYP rCG1kkmz03m5/cNHvRIOoIuasiD5Wq18AII9S5XdA4ElGS92bAif+evAXBN92YJE xsIYDi7pFKGcbWS0YyZlKZlzFhQuCiEOqe7RSfzSiIAYTarg3TOQWflku1jldxWC B0ftvLQbipJ7/mCEIh8I+AcLqpw2jnLvhzFkMDpKPahYjhd8t5mkhReCST6+wQM= =k9Q6 -----END PGP SIGNATURE----- --Nq2Wo0NMKNjxTN9z--