kvm_s390_pv_dump_stor_state(9)
β¨ NAME β¨
okay so bestie, welcome to the kvm_s390_pv_dump_stor_state(9) page from the Kernel API Manual π«Άπ
The NAME line is literally just kvm_s390_pv_dump_stor_state β dash, then nothing. No extra one-liner, no secret subtitle. We are not inventing one, periodt. π
π¦ SYNOPSIS π¦
The function is declared exactly like this, no cap:
int kvm_s390_pv_dump_stor_state (struct kvm *kvm , void __user *buff_user , u64 *gaddr , u64 buff_user_len , u16 *rc , u16 *rrc );
π ARGUMENTS π
These are the parameters, bestie β every single one matters:
kvmβ pointer to the guest's KVM struct, iykyk.buff_userβ Userspace pointer where we will write the results to. That's where the data goes πgaddrβ Starting absolute guest address for which the storage state is requested.buff_user_lenβ Length of thebuff_userbuffer.rcβ Pointer to where theuvcbreturn code is stored.rrcβ Pointer to where theuvcbreturn reason code is stored.
π DESCRIPTION π
okay so the actual job: stores buff_len bytes of tweak component values to buff_user, starting with the 1MB block specified by the absolute guest address (gaddr). β¨
The gaddr pointer will be updated with the last address for which data was written when returning to userspace. π«Ά
heads up, bestie:buff_usermight be written to even if an errorrcis returned. For instance if we encounter a fault after writing the first page of data. π
π CONTEXT π
kvm->lock needs to be held. That's it. That's the context. Do not forget it, bestie. π
π RETURN π
0on success β slay.-ENOMEMif allocating the cache fails.-EINVALifgaddris not aligned to 1MB.-EINVALifbuff_user_lenis not aligned touv_info.conf_dump_storage_state_len.-EINVALif the UV call fails,rcandrrcwill be set in this case.-EFAULTif copying the result tobuff_userfailed.
π«Ά SEE ALSO π«Ά
Kernel file ./arch/s390/kvm/s390/pv.c has the source-lore, and these are the linked manpage besties:
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_deinit_aside_vm(9)kvm_s390_pv_dump_complete(9)
mwah π that's the page! The source line was ./arch/s390/kvm/s390, and the date stamp says October 2026. Catch you in the next manpage, bestie π«Άβ¨
π¦ 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