]> git.proxmox.com Git - mirror_qemu.git/commit
qom: enforce readonly nature of link's check callback
authorIgor Mammedov <imammedo@redhat.com>
Fri, 14 Jul 2017 02:14:50 +0000 (10:14 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 10:04:42 +0000 (12:04 +0200)
commit8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a
treee2829b8ca3d04cdee2f37cc1a01419786ac494c9
parentd40d3da00c10f0169a26985ecb65033bff536f2c
qom: enforce readonly nature of link's check callback

link's check callback is supposed to verify/permit setting it,
however currently nothing restricts it from misusing it
and modifying target object from within.
Make sure that readonly semantics are checked by compiler
to prevent callback's misuse.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170714021509.23681-2-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/qdev-properties.c
hw/display/xlnx_dp.c
hw/ipmi/ipmi.c
hw/mem/pc-dimm.c
hw/misc/ivshmem.c
hw/virtio/virtio-crypto.c
include/hw/qdev-properties.h
include/qom/object.h
qom/object.c