ENUM VMBALLOON_CMD_TYPE(9)
π enum vmballoon_cmd_type(9) π
okay so bestie, welcome to the Kernel API Manual corner where we talk about enum vmballoon_cmd_type β literally the backdoor commands. it's giving βsecret menu but make it kernelβ and I'm obsessed. π
β¨ NAME β¨
enum vmballoon_cmd_type β backdoor commands.
β¨ SYNOPSIS β¨
enum vmballoon_cmd_type {
VMW_BALLOON_CMD_START ,
VMW_BALLOON_CMD_GET_TARGET ,
VMW_BALLOON_CMD_LOCK ,
VMW_BALLOON_CMD_UNLOCK ,
VMW_BALLOON_CMD_GUEST_ID ,
VMW_BALLOON_CMD_BATCHED_LOCK ,
VMW_BALLOON_CMD_BATCHED_UNLOCK ,
VMW_BALLOON_CMD_BATCHED_2M_LOCK ,
VMW_BALLOON_CMD_BATCHED_2M_UNLOCK ,
VMW_BALLOON_CMD_VMCI_DOORBELL_SET ,
VMW_BALLOON_CMD_LAST
};
π Constants π
okay here's the whole cast, no skips, no cap:
VMW_BALLOON_CMD_STARTβ communicating supported version with the hypervisor. it's the βhi, what version are we on?β command π¬VMW_BALLOON_CMD_GET_TARGETβ gets the balloon target size. target acquired bestie π―VMW_BALLOON_CMD_LOCKβ informs the hypervisor about a ballooned page. locked in, literally πVMW_BALLOON_CMD_UNLOCKβ informs the hypervisor about a page that is about to be deflated from the balloon. it's leaving the balloon era πVMW_BALLOON_CMD_GUEST_IDβ informs the hypervisor about the type of OS that runs in the VM. guest identity reveal πͺͺVMW_BALLOON_CMD_BATCHED_LOCKβ inform the hypervisor about a batch of ballooned pages (up to 512). batch processing, but cute π¦VMW_BALLOON_CMD_BATCHED_UNLOCKβ inform the hypervisor about a batch of pages that are about to be deflated from the balloon (up to 512). batch deflate moment πVMW_BALLOON_CMD_BATCHED_2M_LOCKβ similar toVMW_BALLOON_CMD_BATCHED_LOCKfor 2MB pages. 2MB page energy π¦VMW_BALLOON_CMD_BATCHED_2M_UNLOCKβ similar toVMW_BALLOON_CMD_BATCHED_UNLOCKfor 2MB pages. 2MB unlock slay π©VMW_BALLOON_CMD_VMCI_DOORBELL_SETβ a command to set doorbell notification that would be invoked when the balloon size changes. doorbell notification, but for balloon size changes πVMW_BALLOON_CMD_LASTβ value of the last command. the final boss constant π
πΈ Description πΈ
okay so availability of the commands is as followed:
VMW_BALLOON_CMD_START,VMW_BALLOON_CMD_GET_TARGETandVMW_BALLOON_CMD_GUEST_IDare always available. always-on icons, periodt β¨- If the host reports
VMW_BALLOON_BASIC_CMDSare supported thenVMW_BALLOON_CMD_LOCKandVMW_BALLOON_CMD_UNLOCKcommands are available. basic cmds check passed π - If the host reports
VMW_BALLOON_BATCHED_CMDSare supported thenVMW_BALLOON_CMD_BATCHED_LOCKandVMW_BALLOON_CMD_BATCHED_UNLOCKcommands are available. batched cmds check passed π¦ - If the host reports
VMW_BALLOON_BATCHED_2M_CMDSare supported thenVMW_BALLOON_CMD_BATCHED_2M_LOCKandVMW_BALLOON_CMD_BATCHED_2M_UNLOCKare supported. 2M batched cmds check passed π - If the host reports
VMW_BALLOON_SIGNALLED_WAKEUP_CMDis supported thenVMW_BALLOON_CMD_VMCI_DOORBELL_SETcommand is supported. signalled wakeup cmd check passed π
π¦ SEE ALSO π¦
okay the whole squad is linked here:
- Kernel file
./drivers/misc/vmw_balloon.cstructvmballoon_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_add_page(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)
okay bye bestie π β source/version: ./drivers/misc; date: October 2026; page: enum vmballoon_cmd_type(9) β¨
π¦ 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