should_export_before_import(9)
π¦ should_export_before_import(9) β Kernel API Manual π¦
okay bestie, welcome to the kernel API manual for should_export_before_import(9) β yes, the whole page is literally about whether you gotta export before an import-like operation. iconic behavior honestly π
π NAME π
should_export_before_import β determine whether an export is needed before an import-like operation.
β¨ SYNOPSIS β¨
bool should_export_before_import (struct uv_cb_header *uvcb , struct mm_struct *mm );
π ARGUMENTS π
uvcbβ the Ultravisor control block of the UVC to be performed. that's the whole vibe of this argument π«Άmmβ the mm of the process.
πΈ DESCRIPTION πΈ
Okay so this function returns whether an export is needed before every import-like operation. no cap, that's the main character question here β¨
This is needed for shared pages, which don't trigger a secure storage exception when accessed from a different guest.
Although considered as one, the Unpin Page UVC is not an actual import, so it is not affected. not me pointing that out but also yes i am π
No export is needed also when there is only one protected VM, because the page cannot belong to the wrong VM in that case (there is no "other VM" it can belong to). literally no other VM to cause drama with π
π₯ RETURN π₯
true if an export is needed before every import, otherwise false.
π SEE ALSO π
- Kernel file:
./arch/s390/kvm/s390/pv.c 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_stor_state(9)kvm_s390_pv_dump_complete(9)
cute little sign-off bestie: this one's from ./arch/s390/kvm/s390, October 2026, and the page is should_export_before_import(9). slay and goodbye πβ¨π¦
π¦ 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