mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-24 00:41:16 +00:00
vmm: Unpark the DeviceManager threads in shutdown
To ensure that the DeviceManager threads (such as those used for virtio devices) are cleaned up it is necessary to unpark them so that they get cleanly terminated as part of the shutdown. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
801e72ac6d
commit
31bde4f5da
@ -608,6 +608,13 @@ impl Vm {
|
|||||||
signals.close();
|
signals.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wake up the DeviceManager threads so they will get terminated cleanly
|
||||||
|
self.device_manager
|
||||||
|
.lock()
|
||||||
|
.unwrap()
|
||||||
|
.resume()
|
||||||
|
.map_err(Error::Resume)?;
|
||||||
|
|
||||||
self.cpu_manager
|
self.cpu_manager
|
||||||
.lock()
|
.lock()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user