diff --git a/vmm/src/interrupt.rs b/vmm/src/interrupt.rs index 45c34f349..1ee4de91d 100644 --- a/vmm/src/interrupt.rs +++ b/vmm/src/interrupt.rs @@ -272,7 +272,7 @@ impl InterruptManager for KvmInterruptManager { let mut irq_routes: HashMap = HashMap::with_capacity(count as usize); - for i in base..count { + for i in base..base + count { irq_routes.insert(i, InterruptRoute::new(&mut allocator)?); }