block: move logical block size check function to a common utility function
commit5937835ac4cfb2f5e16bebf13b9ea42770c96785
authorCoiby Xu <coiby.xu@gmail.com>
Fri, 18 Sep 2020 08:09:09 +0000 (18 16:09 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 23 Oct 2020 12:42:16 +0000 (23 13:42 +0100)
tree775e94555bee4c1f733b8c58000986c3f6439436
parent70eb2c079cdfa835c70aec8887710b18092516a0
block: move logical block size check function to a common utility function

Move the constants from hw/core/qdev-properties.c to
util/block-helpers.h so that knowledge of the min/max values is

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Message-id: 20200918080912.321299-5-coiby.xu@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/core/qdev-properties-system.c
util/block-helpers.c [new file with mode: 0644]
util/block-helpers.h [new file with mode: 0644]
util/meson.build