[SeaBIOS] [PATCH v3 0/3] virtio-blk: add feature VIRTIO_BLK_F_SIZE_MAX

Andy Pei posted 3 patches 2 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/seabios tags/patchew/1638508964-115451-1-git-send-email-andy.pei@intel.com
There is a newer version of this series
src/block.h         |   2 +
src/hw/virtio-blk.c | 132 +++++++++++++++++++++++++++++++++++++++++++++-------
src/hw/virtio-blk.h |   3 ++
3 files changed, 120 insertions(+), 17 deletions(-)
[SeaBIOS] [PATCH v3 0/3] virtio-blk: add feature VIRTIO_BLK_F_SIZE_MAX
Posted by Andy Pei 2 years, 4 months ago
if driver reads data larger than VIRTIO_BLK_F_SIZE_MAX, it will cause
some issue to the DMA engine.
So add VIRTIO_BLK_F_SIZE_MAX feature support, 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.

Andy Pei (3):
  virtio-blk: add feature VIRTIO_BLK_F_SIZE_MAX and VIRTIO_BLK_F_SEG_MAX
  virtio-blk: abstract a function named virtio_blk_op_one_segment to
    handle r/w request
  virtio-blk.: split large IO according to size_max

 src/block.h         |   2 +
 src/hw/virtio-blk.c | 132 +++++++++++++++++++++++++++++++++++++++++++++-------
 src/hw/virtio-blk.h |   3 ++
 3 files changed, 120 insertions(+), 17 deletions(-)

-- 
1.8.3.1

_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-leave@seabios.org