mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
The BusDevice read and write arms for B0EJ_FIELD_OFFSET and PSEG_FIELD_OFFSET opened with assert!/assert_eq! on data.len(), so a guest 1/2/8-byte MMIO access to either register panicked the vCPU thread. Replace each assert with a warn! and early return so unusual access widths are logged and ignored instead of crashing the VMM. Signed-off-by: Dylan Reid <dgreid@fb.com>