vmballoon_add_page(9)
π vmballoon_add_page(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, it's giving official, it's giving documentation-core, and we're about to make it make sense. this one's a kernel function page, vmballoon_add_page(9), and it's genuinely so simple you'll be like "wait that's it?" π«Ά
β¨ NAME β¨
vmballoon_add_page β adds a page towards lock/unlock operation. that's the whole vibe. it's a helper that feeds a page into the ballooning batch so the lock or unlock can actually go down. slay π
πΈ SYNOPSIS πΈ
void vmballoon_add_page (struct vmballoon *b , unsigned int idx , struct page *p );
returns void, so no return-value anxiety, no "did it work" spiral. it just does the thing. π
π¦ ARGUMENTS π¦
bβ pointer to the balloon. like, thestruct vmballoonitself, the main character of this whole file πidxβ index of the page to be ballooned in this batch. so like, which slot in the batch this page is claiming π―pβ pointer to the page that is about to be ballooned. the actual page, the one headed for balloon town π
π₯ DESCRIPTION π₯
adds the page to be ballooned. that's it. that's the function. it takes your page and files it into the batch so the lock/unlock operation has something to work with β¨
β οΈ the real tea: must be called while holding comm_lock. fr fr, do not skip this. no cap. hold the lock or don't call it at all, bestie π
π SEE ALSO π
kernel file ./drivers/misc/vmw_balloon.c, plus the whole friend group of related pages β go read them, they're iconic:
enum vmballoon_cmd_type(9)struct vmballoon_batch_entry(9)vmballoon_send_guest_id(9)vmballoon_page_order(9)vmballoon_page_in_frames(9)vmballoon_mark_page_offline(9)vmballoon_mark_page_online(9)vmballoon_send_get_target(9)vmballoon_alloc_page_list(9)vmballoon_handle_one_result(9)vmballoon_status_page(9)vmballoon_lock_op(9)vmballoon_lock(9)vmballoon_release_page_list(9)vmballoon_change(9)vmballoon_enqueue_page_list(9)vmballoon_dequeue_page_list(9)vmballoon_split_refused_pages(9)vmballoon_inflate(9)vmballoon_deflate(9)vmballoon_deinit_batching(9)vmballoon_init_batching(9)vmballoon_vmci_init(9)vmballoon_pop(9)vmballoon_work(9)vmballoon_shrinker_scan(9)vmballoon_shrinker_count(9)vmballoon_debug_show(9)vmballoon_migratepage(9)
and that's the page!! π sign-off time: this one lives in ./drivers/misc, dated October 2026, and it's filed under vmballoon_add_page(9). ok bye bestie, go hold that comm_lock ππ§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms