Expand description
Implements a virtio balloon device.
Re-exports§
pub use self::device::Balloon;pub use self::device::BalloonConfig;pub use self::device::BalloonStats;
Modules§
- device
- metrics
- Defines the metrics system for balloon devices.
- persist
- Defines the structures needed for saving/restoring balloon devices.
Enums§
- Balloon
Error - Balloon device related errors.
- Remove
Region Error
Constants§
- BALLOON_
CONFIG_ SPACE_ SIZE - The size of the config space.
- BALLOON_
DEV_ ID - Device ID used in MMIO device identification. Because Balloon is unique per-vm, this ID can be hardcoded.
- BALLOON_
MIN_ NUM_ QUEUES - Min number of virtio queues.
- BALLOON_
QUEUE_ SIZE - Virtio queue size, in number of descriptor chain heads.
- DEFLATE_
INDEX - The index of the deflate queue from Balloon device queues/queues_evts vector.
- FREE_
PAGE_ HINT_ DONE - Command used in free page hinting to indicate to the guest to release pages
- FREE_
PAGE_ HINT_ STOP - Command used in free page hinting to indicate the guest has finished
- INFLATE_
INDEX - The index of the inflate queue from Balloon device queues/queues_evts vector.
- MAX_
PAGES_ IN_ DESC - The maximum number of pages that can be received in a single descriptor.
- MAX_
PAGE_ COMPACT_ BUFFER - The maximum number of pages that can be compacted into ranges during process_inflate(). Needs to be a multiple of MAX_PAGES_IN_DESC.
- MIB_
TO_ 4K_ PAGES - STATS_
INDEX - The index of the stats queue from Balloon device queues/queues_evts vector.
- VIRTIO_
BALLOON_ PFN_ SHIFT - The addresses given by the driver are divided by 4096.