__kvm_s390_pv_destroy_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 __kvm_s390_pv_destroy_page πŸ’…

okay bestie, so this one is from the Kernel API Manual and the function is literally called __kvm_s390_pv_destroy_page β€” yes it's a mouthful, no we're not shortening it, it's iconic as is πŸŽ€


✨ NAME ✨

__kvm_s390_pv_destroy_page β€” destroy a guest page πŸ¦‹


✨ SYNOPSIS ✨

int __kvm_s390_pv_destroy_page (struct page *page );

like, that's the whole signature. short and slay.


✨ ARGUMENTS ✨

  • page β€” the page you want to destroy πŸ’€ literally the page, that's it, that's the argument

✨ DESCRIPTION ✨

okay so here's the vibe: the function makes an attempt to destroy the given guest page. that's the main character move ✨

but ngl, things don't always go off without a hitch, so β€” if that destroy attempt fails, it then makes an attempt to export the page instead. kinda like a little backup plan, we love a fallback 🫢

and if both of those attempts fail? then it just returns an appropriate error. no cap, that's the whole flow. 😭


✨ CONTEXT ✨

⚠️ real talk: this must be called holding the mm lock for gmap->mm. not optional, not a suggestion β€” hold the lock or don't call it πŸ’…

✨ SEE ALSO ✨

Kernel file ./arch/s390/kvm/s390/s390.h plus these besties:


and that's the page, bestie 🧚 go forth and destroy (guest pages) responsibly πŸ’œ

mwah πŸ’– β€” this one lives at ./arch/s390/kvm/s390, dated October 2026, and it's __kvm_s390_pv_destroy_page(9) all the way down ⭐

πŸ“¦ where this page comes from