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

Andy Pei posted 3 patches 9 months, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/seabios tags/patchew/1638840668-165774-1-git-send-email-andy.pei@intel.com
src/block.h         |   2 +
src/hw/virtio-blk.c | 128 +++++++++++++++++++++++++++++++++++++++++-----------
src/hw/virtio-blk.h |   3 ++
3 files changed, 107 insertions(+), 26 deletions(-)
[SeaBIOS] [PATCH v4 0/3] virtio-blk: add feature VIRTIO_BLK_F_SIZE_MAX
Posted by Andy Pei 9 months, 4 weeks 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 | 128 +++++++++++++++++++++++++++++++++++++++++-----------
 src/hw/virtio-blk.h |   3 ++
 3 files changed, 107 insertions(+), 26 deletions(-)

-- 
1.8.3.1

_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-leave@seabios.org
[SeaBIOS] Re: [PATCH v4 0/3] virtio-blk: add feature VIRTIO_BLK_F_SIZE_MAX
Posted by Kevin O'Connor 9 months, 2 weeks ago
On Tue, Dec 07, 2021 at 09:31:05AM +0800, Andy Pei wrote:
> 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.

Thanks.  I committed this change.

-Kevin
_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-leave@seabios.org
[SeaBIOS] Re: [PATCH v4 0/3] virtio-blk: add feature VIRTIO_BLK_F_SIZE_MAX
Posted by Pei, Andy 9 months, 2 weeks ago
Thanks Kevin

-----Original Message-----
From: Kevin O'Connor <kevin@koconnor.net> 
Sent: Sunday, December 19, 2021 12:55 AM
To: Pei, Andy <andy.pei@intel.com>
Cc: seabios@seabios.org; kraxel@redhat.com
Subject: Re: [PATCH v4 0/3] virtio-blk: add feature VIRTIO_BLK_F_SIZE_MAX

On Tue, Dec 07, 2021 at 09:31:05AM +0800, Andy Pei wrote:
> 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.

Thanks.  I committed this change.

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