qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-2.5] virtio-blk/dataplane: parentize compat


From: Cornelia Huck
Subject: Re: [Qemu-devel] [PATCH for-2.5] virtio-blk/dataplane: parentize compat iothread
Date: Mon, 7 Dec 2015 17:27:30 +0100

On Mon,  7 Dec 2015 16:50:01 +0100
Cornelia Huck <address@hidden> wrote:

> For x-data-plane=true, we create an iothread automatically for
> compatibility. Commit d21e877 ("iothread: include id in thread name")
> exposed that this iothread missed correct parenthood: fix this.
> 
> Signed-off-by: Cornelia Huck <address@hidden>
> ---
>  hw/block/dataplane/virtio-blk.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c
> index c42ddeb..c7e5668 100644
> --- a/hw/block/dataplane/virtio-blk.c
> +++ b/hw/block/dataplane/virtio-blk.c
> @@ -187,6 +187,9 @@ void virtio_blk_data_plane_create(VirtIODevice *vdev, 
> VirtIOBlkConf *conf,
>          object_initialize(&s->internal_iothread_obj,
>                            sizeof(s->internal_iothread_obj),
>                            TYPE_IOTHREAD);
> +        object_property_add_child(OBJECT(conf), TYPE_IOTHREAD,
> +                                  OBJECT(&s->internal_iothread_obj),
> +                                  &error_abort);
>          user_creatable_complete(OBJECT(&s->internal_iothread_obj), 
> &error_abort);
>          s->iothread = &s->internal_iothread_obj;
>      }

Scratch that, does not work... (I thought I was hitting the other
segfault in the block backend processing...)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]