]> git.proxmox.com Git - mirror_qemu.git/commit - hw/block/virtio-blk.c
virtio-blk: replace x-iothread with iothread link property
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 10 Jun 2014 07:03:20 +0000 (09:03 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Jul 2014 07:15:02 +0000 (09:15 +0200)
commit467b3f33e9b094bf6db5a4d6e6905f077edca0fb
tree3e5be336e72e526481b81651c5aaa7b564d3f395
parent32a877e4059ad7fd428bdd31d3e954fed72fa21b
virtio-blk: replace x-iothread with iothread link property

Up until now -device virtio-blk-pci,x-iothread=<id> was used to assign
an IOThread.  This was a temporary solution while we cleaned up QOM link
properties.

This patch switches over to a QOM link property since it is now possible
to restrict the setter to unrealized instances and automatically unref
the IOThread when the virtio-blk-pci device is freed.

Since the "iothread" property is a QOM property and not a qdev property,
we must alias it explicitly for virtio-blk-pci, as well as CCW and
s390-virtio.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/virtio-blk.c
hw/s390x/s390-virtio-bus.c
hw/s390x/virtio-ccw.c
hw/virtio/virtio-pci.c