diff options
| author | Fam Zheng <famz@redhat.com> | 2017-07-14 10:14:51 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-14 12:04:42 +0200 |
| commit | faabdbb792889bf011a593578d1de51e14616bb7 (patch) | |
| tree | 463f083cf9cb60b20bd76b5acc609a0b3576cf57 /qmp.c | |
| parent | 8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a (diff) | |
| download | focaccia-qemu-faabdbb792889bf011a593578d1de51e14616bb7.tar.gz focaccia-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 '')
| -rw-r--r-- | qmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmp.c b/qmp.c index 84a4f29563..e6b68fe798 100644 --- a/qmp.c +++ b/qmp.c @@ -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 */ } |