mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
is_range_state() and set_range() took nb_blocks as u16 to match the wire format, but unplug_all() computed the total block count from region_size / block_size and cast to u16, silently truncating for regions larger than 128 GiB. Widen the internal parameter to usize so unplug_all() resets the full bitmap. Signed-off-by: Rob Bradford <rbradford@meta.com> Assisted-by: Claude:claude-opus-4-6