]> git.proxmox.com Git - mirror_qemu.git/commit - hw/misc/ivshmem.c
ivshmem: Convert to DEFINE_PROP_LINK
authorFam Zheng <famz@redhat.com>
Fri, 14 Jul 2017 02:15:00 +0000 (10:15 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 10:04:43 +0000 (12:04 +0200)
commite9cb190ad4cea8e6fd24afb973c5007b9a439bc9
tree3bd1702b3b433aec9af1e6018eeacc3cac6b085f
parent2de7e26891db3d5b7f214fa485a5e946b17a57b9
ivshmem: Convert to DEFINE_PROP_LINK

Unlike the usual object_property_add_link() invocations in other
devices, ivshmem checks the "is mapped" state of the backend in addition
to qdev_prop_allow_set_link_before_realize. To convert it without
specializing DEFINE_PROP_LINK which always uses the qdev callback, move
the extra check to device realize time.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170714021509.23681-12-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/ivshmem.c