mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
92cf2816b0
The pause of vcpu is async now, which makes the vm pause is not synchronised. As virtio device calls paused_sync wait() to make sure device_manager pause synchronously, if we make vcpu pause synchronously, the vm pause can be synchronously then. After vm.pause() returns the vm is really paused now. This patch adds a AtomicBool variable to mark vcpu paused state, to make sure the pause of CpuManager is synchronised. Signed-off-by: Yi Wang <foxywang@tencent.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |