]> xenbits.xensource.com Git - seabios.git/commit
virtio-blk: split large IO according to size_max
authorAndy Pei <andy.pei@intel.com>
Tue, 7 Dec 2021 01:31:08 +0000 (09:31 +0800)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 18 Dec 2021 16:52:43 +0000 (11:52 -0500)
commita05af290bac55be65e979e007687d4e27cfa7b8d
tree35275df7582a11bf214d7094d7bdad05ec15bb03
parent815d7498655b8207821d405bc49fa993702f456f
virtio-blk: split large IO according to size_max

if driver reads data larger than VIRTIO_BLK_F_SIZE_MAX,
it will cause some issue to the DMA engine.

So when upper software wants to read data larger than
VIRTIO_BLK_F_SIZE_MAX, virtio-blk driver split one large
request into multiple smaller ones.

Signed-off-by: Andy Pei <andy.pei@intel.com>
Signed-off-by: Ding Limin <dinglimin@cmss.chinamobile.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
src/hw/virtio-blk.c