mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Set a config_changed flag in VirtioInterruptMsix when a Config interrupt fires, and increment config_generation only when the driver next reads the device specific configuration region. The flag is cleared by that read so the driver observes a stable value across the read and a fresh value on any later read. This avoids the wrap hazard of incrementing on every Config event, where a burst of interrupts could roll the 8 bit counter back to its previous value between two driver reads. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>