qdev-monitor: set DeviceState opts before calling realize
authorBandan Das <bsd@redhat.com>
Wed, 26 Feb 2014 17:32:40 +0000 (10:32 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 26 Feb 2014 17:32:40 +0000 (10:32 -0700)
commit52aa17cbd800b9e71b67cf7f80c3498183d34ec8
tree045ed30fb5ad3771a8c14be849aa23bbc15a74f0
parent82d07945652f16078b172d2bd46659e8f5f30d8e
qdev-monitor: set DeviceState opts before calling realize

Setting opts before the realize property is set allows the
following patch to make decisions based on whether the user
specified "rombar". This also avoids having to create a new
tristate property especially for this purpose

Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
qdev-monitor.c