summary refs log tree commit diff stats
path: root/include/hw/qdev-properties.h
diff options
context:
space:
mode:
authorRoman Kagan <rvkagan@yandex-team.ru>2020-05-29 01:55:13 +0300
committerKevin Wolf <kwolf@redhat.com>2020-06-17 14:53:40 +0200
commit645b55d1c2bf35ce6344f1f472fa30e327cafce0 (patch)
treec2ced41bd84866014d98cc61a3b288f22fdce0f1 /include/hw/qdev-properties.h
parent914e74cda9a54ac860000aa18882dc40d3c8180b (diff)
downloadfocaccia-qemu-645b55d1c2bf35ce6344f1f472fa30e327cafce0.tar.gz
focaccia-qemu-645b55d1c2bf35ce6344f1f472fa30e327cafce0.zip
qdev-properties: make blocksize accept size suffixes
It appears convenient to be able to specify physical_block_size and
logical_block_size using common size suffixes.

Teach the blocksize property setter to interpret them.  Also express the
upper and lower limits in the respective units.

Signed-off-by: Roman Kagan <rvkagan@yandex-team.ru>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200528225516.1676602-6-rvkagan@yandex-team.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/hw/qdev-properties.h')
0 files changed, 0 insertions, 0 deletions