mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
QCOW2 v3 specifies refcount_order 0-6 with refcount_bits = 1 << refcount_order. Previously only 16-bit (order 4) was supported. Changes: - RefcountBytes trait handles byte-aligned types (8/16/32/64-bit) - Generic pack/unpack for sub-byte widths (1/2/4-bit) - Function pointers for read/write selected at open time - Internal refcount type widened from u16 to u64 Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>