Re: Max number of descriptors in a virtio-blk chain
Stefan Hajnoczi <[email protected]> Wed, 22 Apr 2026 14:11:04 -0400
| Newsgroups | dev.linux.lists.virtio-comment |
|---|---|
| Message-ID | <20260422181104.GC498202@fedora> |
--3hmKfY5BbtmIx4pf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 22, 2026 at 05:38:56PM +0200, Matias Ezequiel Vara Larsen wrote: > Hello, >=20 > On Wed, Apr 22, 2026 at 04:02:06AM -0400, Demi Marie Obenour wrote: > > Is there a limit to the number of descriptors that a virtio-blk driver > > can use in a request? In at least Cloud Hypervisor's implementation, >=20 > I think this is limited to the number of descriptors that you expose to > the device in the descriptor ring. In addition, I think the index is 16 > bits long. Virtqueue size is the upper limit. There are also additional Configuration Space fields that limit virtio-blk requests: - seg_max: max number of descriptors in a request - max_discard_seg: max number of descriptors for discard requests - max_write_zeroes_seg: max number of descriptors for write zeroes requests - max_secure_erase_seg: max number of descriptors for secure erase requests Stefan --3hmKfY5BbtmIx4pf Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQEyBAEBCgAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmnpDzgACgkQnKSrs4Gr c8h7UQf4yU369k0yIf5nt6EN/04pPMCCSSdgLeB4Tp891KkWhEd0E5pfUS9LU/uQ XTblTRaox4DSsMhmNiR59pL0SKUNqcN4nQ4Hiv1YSgALqrXGJ7N6NfZkz6fvj699 xAyeZZEBQs57VEsGXaQJV/3cG01JwSjfIXMVN3YYNpkOYDA+GvKikUyN587GU7T/ Ae7rIjUSqB9rGh/Ka0Ikvoh/dVcBP/rLibagJ0YsPxP275hPXNgDalr0t4fbiRMT pGjfONyjAcO7XPHHoxC9jVHnEEBzkLg7eaR3VdsUioeJOcn7hINeKpOtbZ/JmsZT qC29qFcndw0VN9EeL8CBuwT8uTjs =qwFJ -----END PGP SIGNATURE----- --3hmKfY5BbtmIx4pf--