mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Both block and net implement the same DEVICE_NEEDS_RESET bookkeeping when a corrupted virtqueue request is detected. They set the bit, trigger a config change interrupt and log a warning. Move that logic into shared device_needs_reset and mark_device_needs_reset helpers in lib.rs and update both call sites to use them. No functional change. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>