Skip to main content

Module balloon

Module balloon 

Source
Expand description

/balloon, /balloon/statistics, /balloon/hinting/{op} bodies.

Per 21-api-compat-matrix.md /balloon PUT:

  • amount_mib0..=mem_size_mib − 32 (matches upstream MAX_BALLOON_SIZE_MIB); the upper bound is host-RAM-dependent and validated at the controller.
  • deflate_on_oom — bool default true (matches upstream).
  • stats_polling_interval_s0..=255; 0 disables polling.
  • free_page_hinting, free_page_reporting — bool defaults false.

Structs§

BalloonConfig
Validated /balloon PUT body.
BalloonStatsUpdate
Validated /balloon/statistics PATCH body.
BalloonUpdate
Validated /balloon PATCH body.
RawBalloonConfig
Raw /balloon PUT body off the wire.
RawBalloonStatsUpdate
Raw /balloon/statistics PATCH body.
RawBalloonUpdate
Raw /balloon PATCH body.

Enums§

BalloonHintingOp
PATCH /balloon/hinting/{op} operation kind. Each maps 1:1 to the URL path segment.

Constants§

MAX_STATS_POLL_INTERVAL
Maximum stats_polling_interval_s per upstream. The wire field is a u8 so the type system enforces the cap; this constant exists to document the intent.