kvm_s390_pv_deinit_aside_vm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kvm_s390_pv_deinit_aside_vm(9) β€” NAME πŸŽ€

okay so bestie, welcome to the Kernel API Manual, and lemme tell you about kvm_s390_pv_deinit_aside_vm β€” it's literally the function that tears down a protected VM you'd already set aside earlier. like, the cleanup arc of the whole story. ✨


🌸 SYNOPSIS 🌸

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • kvm β€” the VM that was already associated with the protected VM. yes, that one, the one you're cleaning up πŸ’–
  • rc β€” where the return value for the RC field of the UVCB goes
  • rrc β€” where the return value for the RRC field of the UVCB goes

🌈 DESCRIPTION 🌈

so what this does is tear down the protected VM that you already prepped for teardown using kvm_s390_pv_set_aside_vm. like you did the prep, now here's the finale 😭

ideally? this should be called by userspace asynchronously, from a separate thread. yes bestie, separate thread energy β€” main character threading, no cap πŸ§΅πŸ‘‘


πŸ’€ CONTEXT πŸ’€

kvm->lock must not be held. like, do not be holding that lock, i am begging πŸ™ˆ


⭐ RETURN ⭐

  • 0 β€” slayed, it worked, success πŸŽ‰
  • -EINVAL β€” if no protected VM had been prepared for asynchronous teardown. nothing was set aside, so there's nothing to tear down, awkward πŸ’…
  • -EIO β€” in case of other errors. the vague icon, we respect her 🫢

πŸ”₯ SEE ALSO πŸ”₯


bestie this whole thing lives in ./arch/s390/kvm/s390, dated October 2026, and it's page kvm_s390_pv_deinit_aside_vm(9) of the Kernel API Manual. okay that's the whole lore drop, mwah πŸ’œπŸ§šβ€β™€οΈ
πŸ“¦ where this page comes from