mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
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.