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:
Rob Bradford
2020-06-02 16:59:22 +01:00
committed by Sebastien Boeuf
parent cc51fdb8a7
commit a5596020b3
2 changed files with 21 additions and 5 deletions

View File

@@ -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
}
}