mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
The two synchronous completion paths add the head to the used ring with desc_chain.memory() but reload self.mem.memory() to enable notifications. Keep both on the snapshot the chain was parsed from so the used ring update and the notification enable always act on one guest memory view rather than two independent atomic loads. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>