Skip to content

feat(x86_64): use userspace emulated IOAPIC#391

Merged
Lencerf merged 4 commits intogoogle:mainfrom
Lencerf:feat/io-apic
Feb 7, 2026
Merged

feat(x86_64): use userspace emulated IOAPIC#391
Lencerf merged 4 commits intogoogle:mainfrom
Lencerf:feat/io-apic

Conversation

@Lencerf
Copy link
Collaborator

@Lencerf Lencerf commented Feb 7, 2026

No description provided.

@Lencerf Lencerf force-pushed the feat/io-apic branch 2 times, most recently from a86c583 to c2d7950 Compare February 7, 2026 21:27
Ensure the lower 8 bits of the high 32 bits of the MSI message address
are preserved during translation.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
@coveralls
Copy link

coveralls commented Feb 7, 2026

Pull Request Test Coverage Report for Build 21787718629

Details

  • 65 of 125 (52.0%) changed or added relevant lines in 6 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.3%) to 26.6%

Changes Missing Coverage Covered Lines Changed/Added Lines %
alioth/src/vm/vm.rs 0 2 0.0%
alioth/src/hv/kvm/vm/vm_x86_64.rs 5 8 62.5%
alioth/src/board/board_x86_64.rs 0 4 0.0%
alioth/src/device/serial.rs 0 7 0.0%
alioth/src/hv/kvm/vm/vm.rs 0 8 0.0%
alioth/src/device/ioapic.rs 60 96 62.5%
Files with Coverage Reduction New Missed Lines %
alioth/src/board/board.rs 1 10.81%
alioth/src/utils/utils.rs 1 29.09%
Totals Coverage Status
Change from base Build 21784944750: 0.3%
Covered Lines: 3670
Relevant Lines: 14289

💛 - Coveralls

Implement a userspace emulated IOAPIC as an MMIO device.

This is required for TDX support, which needs KVM_CAP_SPLIT_IRQCHIP,
disabling the in-kernel IOAPIC. The primary use for the IOAPIC is for
the serial console.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
Consolidate KVM capability checks and enabling into a single helper
function to reduce boilerplate.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
Remove the `IrqSender` trait on x86_64 as it is no longer needed.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
@Lencerf Lencerf merged commit 9f815d5 into google:main Feb 7, 2026
5 checks passed
@Lencerf Lencerf deleted the feat/io-apic branch February 7, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants