mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
The InterruptRoute code tried to be thread-safe, but it wasn't. In particular, concurrently enabling and disabling an InterruptRoute could result in the route thinking it was enabled (when it was disabled) or visa versa. Wrap all operations in a mutex and drop the attempt at being lock-free. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>