mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
There is no non destructive readonly ioctl to query block device discard or write zeroes capabilities. BLKZEROOUT is guaranteed to succeed via kernel software fallback. BLKDISCARD may fail at runtime with EOPNOTSUPP on devices that lack trim support, but the error propagates to the guest as VIRTIO_BLK_S_IOERR and well behaved guests handle it gracefully. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>