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>
Showing
- hw/core/qdev-properties.c 2 additions, 1 deletionhw/core/qdev-properties.c
- hw/display/xlnx_dp.c 1 addition, 1 deletionhw/display/xlnx_dp.c
- hw/ipmi/ipmi.c 1 addition, 1 deletionhw/ipmi/ipmi.c
- hw/mem/pc-dimm.c 1 addition, 1 deletionhw/mem/pc-dimm.c
- hw/misc/ivshmem.c 1 addition, 1 deletionhw/misc/ivshmem.c
- hw/virtio/virtio-crypto.c 1 addition, 1 deletionhw/virtio/virtio-crypto.c
- include/hw/qdev-properties.h 2 additions, 1 deletioninclude/hw/qdev-properties.h
- include/qom/object.h 3 additions, 3 deletionsinclude/qom/object.h
- qom/object.c 4 additions, 4 deletionsqom/object.c
Loading
Please register or sign in to comment