Skip to content

Commit

Permalink
fix(apic): disable I/O APIC interrupt 0 for Firecracker
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Nov 19, 2024
1 parent fc2493f commit b3e1145
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/arch/x86_64/kernel/apic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,9 @@ fn init_ioapic() {

// now lets turn everything else on
for i in 0..max_entry {
// now, we don't longer need the IOAPIC timer and turn it off
let enabled = i != 2;
// now, we don't longer need the IOAPIC timer (2) and and turn it off
// We also turn off number 0 for Firecracker
let enabled = !matches!(i, 0 | 2);
ioapic_set_interrupt(i, 0, enabled);
}
}
Expand Down

0 comments on commit b3e1145

Please sign in to comment.