mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Implement read support for bit 0 in QCOW2 L2 table entries. When this flag is set, the cluster reads as zeros without accessing disk. This improves compatibility with QCOW2 images that use this optimization. According to the QCOW2 specification, bit 0 of the standard cluster descriptor indicates that the cluster reads as zeros. Unlike l2_entry == 0 indicating a completely unallocated entry, bit 0 can be set on an allocated cluster. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>