__kvm_s390_pv_destroy_page(9)
πΈ __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
- 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