STRUCT SEV_USER_DATA_STATUS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct sev_user_data_status(9) πŸ’…

okay so bestie, welcome to section 9 of the Kernel API Manual β€” this is the page for struct sev_user_data_status, and it's literally the parameters for the PLATFORM_STATUS command. yes, that one. let's get into it 🫢

✨ NAME ✨

struct sev_user_data_status β€” the parameter bundle for the PLATFORM_STATUS command, no cap πŸ’–

🌸 SYNOPSIS 🌸

here's the whole struct, verbatim, don't touch a single character:

struct sev_user_data_status {
    __u8 api_major;
    __u8 api_minor;
    __u8 state;
    __u32 flags;
    __u8 build;
    __u32 guest_count;
 };

it's giving compact. it's giving iconic. πŸŽ€

πŸ¦‹ Members πŸ¦‹

okay so these are the fields the page actually spells out for you β€” keep up, i'm not repeating myself:

  • state β€” the platform state. that's it, that's the vibe check 🌈
  • flags β€” the platform config flags, iykyk ⭐
  • build β€” the firmware build id for the API version πŸ”₯
  • guest_count β€” how many guests are active rn πŸ‘‘
ngl bestie, notice that api_major and api_minor are chilling in the struct up there but the Members list doesn't describe them β€” so i'm not gonna make up lore about them either. we respect the source. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

go read these next, fr fr:

  • Kernel file ./include/uapi/linux/psp-sev.h
  • struct sev_user_data_pek_csr(9)
  • struct sev_user_data_pdh_cert_export(9)
  • struct sev_user_data_get_id(9)
  • struct sev_user_data_get_id2(9)
  • struct sev_user_data_snp_status(9)
  • struct sev_user_data_snp_config(9)
  • struct sev_issue_cmd(9)

and that's the whole page, bestie, you ate that πŸ“ this cutie lives in ./include/uapi/linux, dated October 2026, and the manual page answers to struct sev_user_data_status(9) β€” mwah, study slay, see you in the next one πŸ˜­πŸ’–πŸ§š

πŸ“¦ where this page comes from