]> git.proxmox.com Git - mirror_qemu.git/commit
qdev-properties: add UUID property type
authorRoman Kagan <rkagan@virtuozzo.com>
Mon, 27 Nov 2017 13:05:17 +0000 (16:05 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 5 Dec 2017 17:13:45 +0000 (19:13 +0200)
commit87e6ed5670771b558d733fd21ed8e1e4da0e368a
tree0d5020eff4dd7d374d9dcba1664f211e94ad1770
parent2d6dcbf93fb01b4a7f45a93d276d4d74b16392dd
qdev-properties: add UUID property type

UUIDs (GUIDs) are widely used in VMBus-related stuff, so a dedicated
property type becomes helpful.

The property accepts a string-formatted UUID or a special keyword "auto"
meaning a randomly generated UUID; the latter is also the default when
the property is not given a value explicitly.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/qdev-properties.c
include/hw/qdev-properties.h