mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
num_buffers sits at offset 10 of the virtio net header, so only vnet_hdr_len() bytes need to translate contiguously to compute its host address. Shrink the translate_gva length from desc.len() to vnet_hdr_len() so the request matches what is actually read. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>