mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Avoid a potential infinite loop where if the leader fails to create a cookie due to an unexpected error (not one of the SMT/no kernel support errors) then the other vcpu threads will continue around their spinloops. This change also clarifies the state machine for the leader election with an explicit enum. Signed-off-by: Rob Bradford <rbradford@meta.com>