> -----Original Message----- > From: Roman Kagan <rvka...@yandex-team.ru> > Sent: 27 May 2020 13:45 > To: qemu-de...@nongnu.org > Cc: Kevin Wolf <kw...@redhat.com>; xen-devel@lists.xenproject.org; Gerd > Hoffmann <kra...@redhat.com>; > Daniel P. Berrangé <berra...@redhat.com>; Paolo Bonzini > <pbonz...@redhat.com>; Anthony Perard > <anthony.per...@citrix.com>; Laurent Vivier <laur...@vivier.eu>; Max Reitz > <mre...@redhat.com>; qemu- > bl...@nongnu.org; Philippe Mathieu-Daudé <phi...@redhat.com>; Eric Blake > <ebl...@redhat.com>; Paul > Durrant <p...@xen.org>; Fam Zheng <f...@euphon.net>; John Snow > <js...@redhat.com>; Michael S. Tsirkin > <m...@redhat.com>; Eduardo Habkost <ehabk...@redhat.com>; Keith Busch > <kbu...@kernel.org>; Stefano > Stabellini <sstabell...@kernel.org>; Stefan Hajnoczi <stefa...@redhat.com> > Subject: [PATCH v6 2/5] block: consolidate blocksize properties consistency > checks > > Several block device properties related to blocksize configuration must > be in certain relationship WRT each other: physical block must be no > smaller than logical block; min_io_size, opt_io_size, and > discard_granularity must be a multiple of a logical block. > > To ensure these requirements are met, add corresponding consistency > checks to blkconf_blocksizes, adjusting its signature to communicate > possible error to the caller. Also remove the now redundant consistency > checks from the specific devices. > > Signed-off-by: Roman Kagan <rvka...@yandex-team.ru>
Reviewed-by: Paul Durrant <p...@xen.org>