kvm_s390_pv_deinit_vm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ kvm_s390_pv_deinit_vm(9) ✨

okay bestie so like, welcome to the Kernel API Manual πŸ’– we're doing kvm_s390_pv_deinit_vm(9) today and honestly? it's giving cleanup era. it's giving "we're so done here". no cap, let's get into it 🫢


🌸 NAME 🌸

kvm_s390_pv_deinit_vm β€” deinitialize the current protected VM ✨ (yep, that's the whole thing, she's literally that simple πŸ’…)


πŸŽ€ SYNOPSIS πŸŽ€

int kvm_s390_pv_deinit_vm (struct kvm *kvm , u16 *rc , u16 *rrc );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • kvm β€” the KVM whose protected VM needs to be deinitialized. like this is THE vm, the main character of the operation πŸ‘‘
  • rc β€” the RC code of the UVC. important little guy πŸ’œ
  • rrc β€” the RRC code of the UVC. his bestie, also important πŸ’œ

🌈 DESCRIPTION 🌈

so what this does is deinitialize the current protected VM. she will destroy and cleanup the current protected VM β€” like fully closing the tab, closing the whole browser β€” but ⚠️ she will not cleanup the guest memory. that part is not her job, she said not today πŸ’€

so the way this works is, you should only call this when the protected VM has just been created and therefore does not have any guest memory. OR β€” and this is the other vibe β€” when the caller cleans up the guest memory separately. so like, either it's a brand new baby VM with nothing in it, or you're handling the memory yourself on your own time. iykyk 🌸

🚨 okay this is the important part, don't skip it: this function should not fail, but if it does, the donated memory must not be freed. like i'm serious, do not free it. periodt. πŸ”₯

🧚 CONTEXT 🧚

kvm->lock needs to be held πŸ™ˆ β€” like, you literally cannot do this without it, so lock it first bestie, it's a vibe check you have to pass.


⭐ RETURN ⭐

0 in case of success ✨ otherwise -EIO. so it's literally just the two outcomes, no in-between, no maybe 😭


πŸ’œ SEE ALSO πŸ’œ

okay so there's a whole little friend group here, let me introduce everyone πŸ₯°

go read them, they're all icons, you're welcome πŸ’…


and that's the page bestie!! πŸŽ€ written straight out of ./arch/s390/kvm/s390 and dated October 2026 β€” so mark your calendars or whatever β­πŸ’– mwah, go hold that lock and slay πŸ¦‹βœ¨

πŸ“¦ where this page comes from