Skip to content

OpenVMM/microVM umbrella: PIC, PIT, RTC, and IOAPIC emulation #1184

Closed
18 of 18 issues completed
Closed

Description

Objective. OpenVMM's emulated PIC, PIT, CMOS RTC, and IOAPIC behave like the hardware they model, never panic on a guest access or a restored state, and keep their timing across a snapshot. The microVM's fixed chipset holds exactly these devices beside the portb, shutdown, and snapshot-request devices (openvmm/openvmm_defs/src/microvm.rs), so each bug here reaches microVMs.

Children.

Device Issue Scope Blocked by
PIC #1062, #1139 A poll-mode command read leaves the cascade and ready outputs stale, so the next INTA panics. —
PIT #1063, #1146 Low/high access mode keeps the buffered low byte, so the next count is wrong. —
PIT #1065, #1162 evaluate drops sub-100 ns time, so the PIT runs faster the more often the guest reads it. —
PIT #1066, #1147 Restore accepts a control word with RW = 0, and the next counter access reaches unreachable!. —
PIT #1067 Timer::evaluate takes time proportional to the elapsed periods after idle time. —
RTC #1143 12-hour mode reports noon as AM and rejects 12 PM writes. —
RTC #1151 Wide port reads leave stale upper bytes. —
RTC #1152 The alarm calculation misdecodes wildcards and wraps field borrows. —
RTC #1164 Periodic catch-up after downtime takes one iteration per missed period. —
RTC #1163 Save and restore lose sub-second deadlines, the UIP phase, and stopped-boundary alignment. —
RTC #1376 Restoring a clock time near i64::MIN or i64::MAX, or a downtime that brings it there, overflows the RTC clock's offset from host time. —
IOAPIC #1140 64-bit MMIO reads panic in IoApicDevice::mmio_read. —
IOAPIC #1172 Restore accepts an id above 15, and the next ID-register read panics. —
IOAPIC #1400 On MSHV, the control console's interrupt sometimes never reaches the guest, so interrupt-map fails; a lost edge on its edge-triggered input while the virtio-mmio line stays high is the likely cause. —

Order. No child blocks another. Outside this umbrella, #516 (the one-year downtime limit) is blocked by #1164.

Notes.

Activity

  1. ppenna commented on Nov 14, 2026

    @ppenna
    ContributorAuthor

    Closing: all child issues are resolved, and their fixes are present in origin/dev. NVX PRs #1551, #1557, #1558, #1563, #1565, #1568, #1569, #1570, #1578, and #1410 are merged. The current OpenVMM pin includes upstream fixes microsoft/openvmm#4586, #4838, #4959, #4963, and #4971. #516 remains open, but was explicitly listed as outside this umbrella's scope.

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

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions