Files
systemd/test
Paul Meyer b0221ae1bf vmspawn: let SetMemory() report progress with 'more' (#44403)
Follow-up to #44318, as suggested in its review: instead of polling
Describe() to see whether the guest followed a SetMemory() request,
callers can now pass 'more' and get a notification whenever the
guest's balloon moves, then a final reply once it reached the target.

Partial convergence is normal (unmovable pages, deflate-on-oom), so a
call also ends with a final reply once the size did not change for
five seconds; the caller compares targetBytes and actualBytes. A newer
request ends a still pending call with the new Superseded error.
Without 'more' the call behaves as before, but its reply now carries
the effective target and the current size, since vmspawn rounds the
requested size up to 64 KiB.

TEST-97 now waits through 'more' and covers the Superseded path, using
a paused VM so the pending call cannot complete first.
2026-10-31 08:44:57 +01:00
..
…
…