vmballoon_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🎈 vmballoon_lock(9) β€” Kernel API Manual 🎈

okay bestie, this is the vmballoon_lock(9) page from the Kernel API Manual, and it's all about locking or unlocking a whole batch of pages. no cap.

πŸ’– NAME πŸ’–

vmballoon_lock β€” lock or unlock a batch of pages. periodt.

✨ SYNOPSIS ✨

int vmballoon_lock (struct vmballoon *b , struct vmballoon_ctl *ctl );

🫢 ARGUMENTS 🫢

  • b β€” pointer to the balloon. yes, the actual balloon, iconic.
  • ctl β€” pointer for the struct vmballoon_ctl, which defines the operation. it's giving β€œyou tell it what to do” energy.

πŸ”₯ DESCRIPTION πŸ”₯

So vmballoon_lock notifies the host about ballooned pages β€” after inflation or deflation, according to ctl. If the host rejects the page, it puts that page on the ctl refuse list. Those refused pages are then released when moving to the next size of pages. fr fr.

Note that we neither free any page here nor put them back on the ballooned pages list. Instead we queue it for later processing. We do that for several reasons. First, we do not want to free the page under the lock. Second, it allows us to unify the handling of lock and unlock. In the inflate case, the caller will check if there are too many refused pages and release them. Although it is not identical to the past behavior, it should not affect performance. slay.

🌈 SEE ALSO 🌈

Kernel file ./drivers/misc/vmw_balloon.c β€” plus the whole squad:


Source/version vibes, bestie: ./drivers/misc Β· date: October 2026 Β· page: vmballoon_lock(9) β€” bye bestie, stay locked and loaded πŸ’…βœ¨

πŸ“¦ where this page comes from