iothread: add "iothread" qdev property type
commit6e4a876b433f78f72724f45ae3f9e26596da1b4d
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 3 Mar 2014 10:30:07 +0000 (3 11:30 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 13 Mar 2014 13:42:24 +0000 (13 14:42 +0100)
tree9eafebcbf749c6676ada4ae732722ac686739bd0
parent7d1de46448d0d52183c397d76fbc86cb614ed21b
iothread: add "iothread" qdev property type

Add a "iothread" qdev property type so devices can be hooked up to an
IOThread from the comand-line:

  qemu -object iothread,id=iothread0 \
       -device some-device,x-iothread=iothread0

Note that Paolo Bonzini <pbonzini@redhat.com> has suggested using QOM
links instead.  This way the relationship between the objects is
reflected in QOM.  There are currently shortcomings of
object_property_add_link() which prevent this use case.  I will attempt
to fix them and move to QOM links in a separate series.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/core/qdev-properties-system.c
include/hw/qdev-properties.h