qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/3] virtio-blk: replace x-iothread with iothrea


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 1/3] virtio-blk: replace x-iothread with iothread link property
Date: Tue, 10 Jun 2014 20:35:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 10/06/2014 09:03, Stefan Hajnoczi ha scritto:
@@ -193,6 +193,8 @@ static void s390_virtio_blk_instance_init(Object *obj)
     object_property_add_child(obj, "virtio-backend", OBJECT(&dev->vdev), NULL);
     object_unref(OBJECT(&dev->vdev));
     qdev_alias_all_properties(DEVICE(&dev->vdev), obj);
+    object_property_add_alias(obj, "iothread", OBJECT(&dev->vdev),"iothread",
+                              &error_abort);

Actually this won't work. Link properties have to have a LinkProperty opaque.

The series I posted to add a "resolve" callback for properties can be used here, fixing object_property_add_alias to add a "resolve" callback to the newly-created property.

My ack for this patch still stands, it's just a matter of patch ordering.

Paolo



reply via email to

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