mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vm-virtio: Add some info! level debugging interrupt generation
This was very helpful when debugging interrupt issues and will be useful for the future. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
committed by
Sebastien Boeuf
parent
cc51fdb8a7
commit
a5596020b3
@@ -702,6 +702,10 @@ impl Queue {
|
||||
|
||||
if let Some(old_idx) = self.signalled_used {
|
||||
if let Some(used_event) = self.get_used_event(&mem) {
|
||||
info!(
|
||||
"used_event = {:?} used_idx = {:?} old_idx = {:?}",
|
||||
used_event, used_idx, old_idx
|
||||
);
|
||||
if (used_idx - used_event - Wrapping(1u16)) >= (used_idx - old_idx) {
|
||||
notify = false;
|
||||
}
|
||||
@@ -709,6 +713,7 @@ impl Queue {
|
||||
}
|
||||
|
||||
self.signalled_used = Some(used_idx);
|
||||
info!("Needs notification: {:?}", notify);
|
||||
notify
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user