Skip to content

microvm: expand interrupt capacity beyond ISA IRQs #759

Description

Problem

The fixed microVM image-slot topology in #116 assigns ISA edge IRQs 1, 13, 14, and 15 to image0-image3. The existing devices consume the other usable lines, so there are no independent ISA IRQs left for additional fixed devices. The microVM already has an IOAPIC, but vm/loader/src/mptable.rs currently describes only ISA IRQs 0-15 in its MP table and rejects level-triggered IRQs >= 16; choosing a larger IRQ number is not sufficient.

Investigation

  • Evaluate routing additional guest-visible interrupt lines through spare IOAPIC inputs, or another supported mechanism, including MP-table discovery, trigger/polarity, PIC interaction, and KVM/MSHV/WHP delivery.
  • Define the stable microVM device/interrupt layout and implement it consistently in machine validation, guest discovery, and snapshot/restore contracts. Avoid runtime device hotplug and preserve the no-slot path.
  • Verify that an added virtio-mmio device receives interrupts without collisions across the supported backends; document the resulting IRQ map and limits.

The second virtio-fs slot also overlaps image0 in MMIO and shared status. More IRQ lines alone will not allow those devices to coexist; that separate layout constraint must be accounted for if coexistence is a goal.

Activity

  1. 4 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions