should_export_before_import(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 πŸ‘‘


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