mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
When address translation or the entropy read fails mid-chain the handler reset total_len to zero before breaking out of the loop. If earlier descriptors in the same chain were already filled, the used ring entry under-reports the bytes actually written to guest memory. Drop the reset so the used length reflects reality. Signed-off-by: Rob Bradford <rbradford@meta.com> Assisted-by: Claude:claude-opus-4-6