mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
spawn_virtio_thread now marks the device as NEEDS_RESET and notifies the guest whenever the worker thread exits with an error, so the per handler needs_reset() gate and the handle_queue_iterator_error() helper in net are redundant. Let virtqueue iterator errors propagate out of the worker thread through DeviceError::NetQueuePair. Drop the unused device_status field and the device_needs_reset and mark_device_needs_reset imports. No functional change for the guest. NEEDS_RESET is still set and the config interrupt is still raised on virtqueue corruption. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>