diff options
author | Fam Zheng <famz@redhat.com> | 2017-07-14 10:14:58 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-14 12:04:43 +0200 |
commit | aa8f057e74ae08014736a690ff41f76c756f75f1 (patch) | |
tree | 4e1b9b0b0cdbafe3fdb6324ff3dbb1da955f2d8c /hw/s390x/virtio-ccw.c | |
parent | d1fd7f775ea975f7c710c380a1967e1576dec48f (diff) | |
download | qemu-aa8f057e74ae08014736a690ff41f76c756f75f1.zip qemu-aa8f057e74ae08014736a690ff41f76c756f75f1.tar.gz qemu-aa8f057e74ae08014736a690ff41f76c756f75f1.tar.bz2 |
virtio-crypto: Convert to DEFINE_PROP_LINK
Unlike other object_property_add_link() occurrences in virtio devices,
virtio-crypto checks the "in use" state of the linked backend object in
addition to qdev_prop_allow_set_link_before_realize. To convert it
without needing to specialize DEFINE_PROP_LINK which always uses the
qdev callback, move the "in use" check to device realize time.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170714021509.23681-10-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/s390x/virtio-ccw.c')
-rw-r--r-- | hw/s390x/virtio-ccw.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index a492d0f..c07ddb1 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -1594,9 +1594,6 @@ static void virtio_ccw_crypto_instance_init(Object *obj) ccw_dev->force_revision_1 = true; virtio_instance_init_common(obj, &dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_CRYPTO); - - object_property_add_alias(obj, "cryptodev", OBJECT(&dev->vdev), - "cryptodev", &error_abort); } static void virtio_ccw_crypto_class_init(ObjectClass *klass, void *data) |