qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Fam Zheng <famz@redhat.com>,
	Qemu-block <qemu-block@nongnu.org>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Cornelia Huck <cornelia.huck@de.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] virtio-blk: Drop x-data-plane option
Date: Mon, 7 Dec 2015 17:10:26 +0000	[thread overview]
Message-ID: <CAFEAcA_VNsCGDSAp-noZpHzERZA6s20=khMSFtziE6ftVj0rGQ@mail.gmail.com> (raw)
In-Reply-To: <5665A36B.1060502@redhat.com>

On 7 December 2015 at 15:19, Paolo Bonzini <pbonzini@redhat.com> 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 <famz@redhat.com> 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=on" way now even crashes, it's
>>>> probably easier to just drop it:
>>>>
>>>> $ qemu-system-x86_64 -drive file=null-co://,id=d0,if=none \
>>>>     -device virtio-blk-pci,drive=d0,x-data-plane=on
>>>>
>>>> ERROR:/home/fam/work/qemu/qom/object.c:1515:
>>>> object_get_canonical_path_component: assertion failed: (obj->parent != NULL)
>>>> Aborted
>>>
>>> Do we understand yet why this crashes, btw?
>>
>> I think it's because with x-data-plane=on, virtio-blk initialize an object that
>> doesn't have a parent, therefore it doesn't have a valid "canonical path
>> component" thing, which is different from objects created with "-object" CLI.
>> I'm not very familiar with the QOM semantics here.
>>
>>>
>>>>
>>>> Signed-off-by: Fam Zheng <famz@redhat.com>
>>>> ---
>>>>  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 removing 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.

Paolo asked me to apply this to master, so I have done so.

thanks
-- PMM

  parent reply	other threads:[~2015-12-07 17:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07 10:59 [Qemu-devel] [PATCH] virtio-blk: Drop x-data-plane option Fam Zheng
2015-12-07 11:29 ` Cornelia Huck
2015-12-07 13:02   ` Fam Zheng
2015-12-07 15:19     ` Paolo Bonzini
2015-12-07 15:51       ` Cornelia Huck
2015-12-07 17:10       ` Peter Maydell [this message]
2015-12-09  2:37         ` Stefan Hajnoczi
2015-12-08  1:56     ` Fam Zheng
2015-12-08  9:35       ` Cornelia Huck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFEAcA_VNsCGDSAp-noZpHzERZA6s20=khMSFtziE6ftVj0rGQ@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=cornelia.huck@de.ibm.com \
    --cc=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).