Re: [PATCH RFC 10/15] hw/virtio/vhost-shadow-virtqueue: range boundary in translation

Stefan Hajnoczi <[email protected]>
Newsgroups gmane.comp.emulators.qemu.block,gmane.comp.emulators.qemu
Message-ID <20260728153443.GH371693@fedora>
On Thu, Jul 23, 2026 at 03:30:09PM -0700, Connor Kite wrote:
> iova-tree expects inclusive range sizing when maps are allocated or searched.
> Currently, svqs use exclusive sizing when searching their
> vhost-iova-tree for a match to the region to be translated.  This could
> lead to errors if the region to be translated is at the edge of an iova
> region.
> 
> Fix this by reducing `needle.size` by 1 in
> vhost_svq_translate_addr to bring then it line with DMAMap and iova-tree
> convention.
> 
> Signed-off-by: Connor Kite <[email protected]>
> ---
>  hw/virtio/vhost-shadow-virtqueue.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmpozBMACgkQnKSrs4Gr
c8izowf/U64p6OABThy11Z3fSW1rmXEl6Jrd7XezbfHbOKColkSAkObbzoE0UooI
zEUJUK3xgnTg5eTmYBfJt7KlROkw4hCbE5IFi6/Cga1Wwy5FdTIHjWpEz1KrYstE
o7qkGETt4hN5fTSCGYzbUqrTtH0mkazVnrfTQEiDfTDUNw1uf2A+9flfS8HBeqt3
Vt2rO0KlSOghWg4eOq0jXvVHu1PNV4vSiO0Y9xgNxcR0BcUIqsIvpzpYwORk+pCp
CuegZKktdLHsJPyrOfAhzbJNOjF1MM2Fg8ve+duMk/ylrQYI8Kc8SfR8EzNXZDsH
AbsjyIybOyIO0Qud6z0irH+hOynbEg==
=3T2c
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.