kvm_s390_pv_deinit_aside_vm(9)
π 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 theRCfield of the UVCB goesrrcβ where the return value for theRRCfield 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 π₯
- Kernel file
./arch/s390/kvm/s390/pv.c should_export_before_import(9)kvm_s390_pv_make_secure(9)kvm_s390_pv_destroy_page(9)struct pv_vm_to_be_destroyed(9)kvm_s390_pv_dispose_one_leftover(9)kvm_s390_pv_set_aside(9)kvm_s390_pv_deinit_vm(9)kvm_s390_pv_deinit_cleanup_all(9)kvm_s390_pv_dump_stor_state(9)kvm_s390_pv_dump_complete(9)
bestie this whole thing lives in./arch/s390/kvm/s390, dated October 2026, and it's pagekvm_s390_pv_deinit_aside_vm(9)of the Kernel API Manual. okay that's the whole lore drop, mwah ππ§ββοΈ
π¦ 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