mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Implement a method on VirtioCommon for spawning the worker thread. This method also handles storing the handle to the thread and triggering a reset on the device if thread spawning fails. The addition of this helper replaces a repeated pattern across virtio and vhost-user devices but also ensures correct cleanup when spawning multiple threads for a device with multiple queues. Assisted-by: Claude:Opus-4.7 Signed-off-by: Rob Bradford <rbradford@meta.com>