You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
microVM: align guest-visible virtio feature bits with the architecture guide #569
The architecture guide in doc/design/ describes the guest-visible feature set of each microVM device. The network device advertises an exact mask (section 3.5.1). Each block role offers "a fixed capability set" (section 3.4.2). The host filesystem device offers split rings with indirect descriptors and event-index suppression (section 3.6.1), and the consoles are single-port virtio-console devices with two split queues (section 3.3). Feature masks are part of the versioned machine contract (section 1.5).
The guest sees two feature bits that the guide does not describe:
VIRTIO_F_ACCESS_PLATFORM (bit 33) on both block roles, the host filesystem device, and both consoles.
VIRTIO_CONSOLE_F_SIZE (bit 0) on both consoles.
Found while auditing the implementation against the architecture guide.
The machine has no IOMMU, so ACCESS_PLATFORM translates nothing, but the guest negotiates it, and snapshots record the feature masks.
Options
Remove the bits from the microVM masks. This changes the machine contract, so existing snapshots no longer restore.
Document ACCESS_PLATFORM and the console SIZE feature in sections 3.3, 3.4.2, and 3.6.1, and give each device class an exact mask, as section 3.5.1 does.
Tasks
Choose an option, then change the masks in nanvix/openvmm and promote the pin, or update the architecture guide.
Add a check that compares each microVM device's guest-visible features with its documented mask.
Activity
microVM: give every virtio device class an exact feature mask
microVM: drop access-platform and the console size in microVM ABI 3
scripts: check each microVM device's guest-visible virtio features
scripts: check each microVM device's guest-visible virtio features
openvmm: drop access-platform and the console size in microVM ABI 3
doc: map the virtio feature masks in the OpenVMM roadmap
doc: state each microVM device's exact virtio feature mask
scripts: check each microVM device's guest-visible virtio features
microVM: give every virtio device class an exact feature mask
microVM: drop access-platform and the console size in microVM ABI 3