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
virtio: quiesce a device and re-initialise it after reset with the features it negotiated #567
A virtio driver can be brought up once; nothing can drain its requests to a stop or bring the same driver, with the same ring memory and the same callers, back up after the device was reset. A guest resumed from a hibernate image meets ten reset devices.
Scope
The transport re-runs the status handshake and requires the device to offer every feature the driver negotiated before; a missing feature is a typed error naming it.
Queues are re-programmed at their existing memory with fresh indices.
Every driver has a quiesce, which waits for its non-receive requests to complete, and a re-initialise, which reposts receive pools and restores the little device state outside the rings: MSI-X vectors, the net queue-pair count and RSS table, gpu resources and scanouts, the snd stream state, the vsock CID check, the input selector reads, the iommu domains, and the balloon's returned runs.
Done when
Each driver's unit tests over virtio/src/testing.rs cover quiesce with requests in flight, re-initialise after reset with the same features, and refusal when the device offers fewer.
Activity