Skip to content

Commit 6d7697d

Browse files
committed
fix(block): use correct index for interrupt
Commit d8c2714 (refactor: use VirtioInterrupt in VirtIO devices) which refactored devices to use new VirtioInterrupt type introduced a bug with the index used to trigger a queue interrupt. Instead of using the actual queue index, we were using the index of the used descriptor. Signed-off-by: Babis Chalios <[email protected]>
1 parent 353d3c4 commit 6d7697d

File tree

1 file changed

+1
-1
lines changed
  • src/vmm/src/devices/virtio/block/virtio

1 file changed

+1
-1
lines changed

src/vmm/src/devices/virtio/block/virtio/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl VirtioBlock {
397397

398398
if queue.prepare_kick() {
399399
interrupt
400-
.trigger(VirtioInterruptType::Queue(index))
400+
.trigger(VirtioInterruptType::Queue(0))
401401
.unwrap_or_else(|_| {
402402
block_metrics.event_fails.inc();
403403
});

0 commit comments

Comments
 (0)