mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices, vmm: Enhance debugging around virtio device activation
Sometimes when running under the CI tests fail due to a barrier not being released and the guest blocks on an MMIO write. Add further debugging to try and identify the issue. See: #2118 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -1099,10 +1099,14 @@ impl Vmm {
|
||||
}
|
||||
EpollDispatch::ActivateVirtioDevices => {
|
||||
if let Some(ref vm) = self.vm {
|
||||
let count = self.activate_evt.read().map_err(Error::EventFdRead)?;
|
||||
info!(
|
||||
"Trying to activate pending virtio devices: count = {}",
|
||||
count
|
||||
);
|
||||
vm.activate_virtio_devices()
|
||||
.map_err(Error::ActivateVirtioDevices)?;
|
||||
}
|
||||
self.activate_evt.read().map_err(Error::EventFdRead)?;
|
||||
}
|
||||
EpollDispatch::Api => {
|
||||
// Consume the event.
|
||||
|
||||
Reference in New Issue
Block a user