mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Previously this code could lead to the device being trying to be activated multiple times as the code to trigger the activation was based on the state of the device (not yet activated and device being ready). This could occur if anothe vCPU wrote to a PCI BAR on this device before the device activation was completed by the VMM thread. Now we only trigger the activation if the device readiness has changed as a result of this BAR write (by checking that the readiness was originally unready.) Signed-off-by: Rob Bradford <rbradford@meta.com>