Add downstream patch for wait ack in free page hinting#19
Conversation
PR SummaryHigh Risk Overview When the feature is negotiated, the free-page virtqueue uses Reviewed by Cursor Bugbot for commit 5f96bc5. Bugbot is set up for automated code reviews on this repo. Configure here. |
fixed in 7aba4fc |
Pull in commit b90e190a95c2 ("virtio_balloon: Support wait on ACK for
hinting") by Jack Thomson <jackabt@amazon.com>. Adds a new virtio
feature flag VIRTIO_BALLOON_F_HINT_WAIT_ON_ACK that makes the driver
wait for device ACK before adding hinted ranges to the free_page_list,
enabling MADV_DONTNEED-based RSS reduction. Trades ~30% hinting
duration overhead for the synchronisation guarantee. Applied only to
6.1.158 (the only fc-kernels version we currently want this on).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Nikita Kalyazin <nikita.kalyazin@e2b.dev>
In order to avoid potential corruption of guest pages due to a race condition under memory pressure in the guest, apply patch when building the kernel.