OSDN Git Service

block: lift blocksize property limit to 2 MiB
authorRoman Kagan <rvkagan@yandex-team.ru>
Thu, 28 May 2020 22:55:16 +0000 (01:55 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 17 Jun 2020 12:53:40 +0000 (14:53 +0200)
commit6510ba1c0ebd1503097ac831956505adf5ec29d2
tree246d599dd12827fe79439f48da2015c92d66c0f8
parent031ffd9a612618e86eb1d783b285d658e95f117d
block: lift blocksize property limit to 2 MiB

Logical and physical block sizes in QEMU are limited to 32 KiB.

This appears unnecessarily tight, and we've seen bigger block sizes
handy at times.

Lift the limitation up to 2 MiB which appears to be good enough for
everybody, and matches the qcow2 cluster size limit.

Signed-off-by: Roman Kagan <rvkagan@yandex-team.ru>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200528225516.1676602-9-rvkagan@yandex-team.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/core/qdev-properties.c