mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add VIRTIO_BLK_T_DISCARD and VIRTIO_BLK_T_WRITE_ZEROES request types. Parse discard/write_zeroes descriptors (sector, num_sectors, flags), convert to byte offsets, and call punch_hole/write_zeroes on the disk backend. Mark as unsupported in sync mode. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>