ENUM VMBALLOON_CMD_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 to VMW_BALLOON_CMD_BATCHED_LOCK for 2MB pages. 2MB page energy 🟦
  • VMW_BALLOON_CMD_BATCHED_2M_UNLOCK β€” similar to VMW_BALLOON_CMD_BATCHED_UNLOCK for 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_TARGET and VMW_BALLOON_CMD_GUEST_ID are always available. always-on icons, periodt ✨
  • If the host reports VMW_BALLOON_BASIC_CMDS are supported then VMW_BALLOON_CMD_LOCK and VMW_BALLOON_CMD_UNLOCK commands are available. basic cmds check passed πŸ’…
  • If the host reports VMW_BALLOON_BATCHED_CMDS are supported then VMW_BALLOON_CMD_BATCHED_LOCK and VMW_BALLOON_CMD_BATCHED_UNLOCK commands are available. batched cmds check passed πŸ¦‹
  • If the host reports VMW_BALLOON_BATCHED_2M_CMDS are supported then VMW_BALLOON_CMD_BATCHED_2M_LOCK and VMW_BALLOON_CMD_BATCHED_2M_UNLOCK are supported. 2M batched cmds check passed 🌈
  • If the host reports VMW_BALLOON_SIGNALLED_WAKEUP_CMD is supported then VMW_BALLOON_CMD_VMCI_DOORBELL_SET command is supported. signalled wakeup cmd check passed πŸ””

πŸ¦‹ SEE ALSO πŸ¦‹

okay the whole squad is linked here:

okay bye bestie πŸ’– β€” source/version: ./drivers/misc; date: October 2026; page: enum vmballoon_cmd_type(9) ✨

πŸ“¦ where this page comes from