diff options
author | Fam Zheng | 2017-07-14 04:14:51 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-07-14 12:04:42 +0200 |
commit | faabdbb792889bf011a593578d1de51e14616bb7 (patch) | |
tree | 463f083cf9cb60b20bd76b5acc609a0b3576cf57 /qmp.c | |
parent | qom: enforce readonly nature of link's check callback (diff) | |
download | qemu-faabdbb792889bf011a593578d1de51e14616bb7.tar.gz qemu-faabdbb792889bf011a593578d1de51e14616bb7.tar.xz qemu-faabdbb792889bf011a593578d1de51e14616bb7.zip |
qdev: Introduce PropertyInfo.create
This allows property implementation to provide a specialized property
creation method.
Update conditions guarding property types accordingly.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170714021509.23681-3-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qmp.c')
-rw-r--r-- | qmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -480,7 +480,7 @@ static DevicePropertyInfo *make_device_property_info(ObjectClass *klass, * for removal. This conditional should be removed along with * it. */ - if (!prop->info->set) { + if (!prop->info->set && !prop->info->create) { return NULL; /* no way to set it, don't show */ } |