STRUCT SEV_ISSUE_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct sev_issue_cmd(9) β€” the kernel API manual, but make it make sense

okay so bestie, welcome to the struct sev_issue_cmd(9) page ✨ this is the kernel API manual for a little struct that carries your SEV ioctl parameters around. yes, that struct. she's small, she's three fields, she's lowkey doing a lot of work. let's get into it 🫢


🌸 NAME 🌸

struct sev_issue_cmd β€” literally just the SEV ioctl parameters. that's her whole job. iconic honestly πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole vibe, copy it exactly, no cap:

struct sev_issue_cmd {
    __u32 cmd;
    __u64 data;
    __u32 error;
 };

look at her. three fields. not one more, not one less. the way that struct is so compact?? obsessed πŸ’–


πŸ¦‹ Members πŸ¦‹

  • cmd β€” the SEV commands to execute. this is you telling the firmware what you actually want, like placing an order at the drive-thru πŸ“
  • data β€” pointer to the command structure. yes she's a __u64 holding a pointer, that's the move, don't question it πŸ’…
  • error β€” the SEV FW return code on failure. so when things go sideways (and they might 😭), this is where the firmware tells you what happened. keep an eye on her fr fr

πŸ”₯ SEE ALSO πŸ”₯

all the related structs live in the kernel file ./include/uapi/linux/psp-sev.h, and the squad is:

  • struct sev_user_data_status(9)
  • 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)

go read them, they're all in the same friend group, iykyk 🌈


ngl the error field is the one carrying the emotional weight here β€” she's the one who has to deliver the bad news when the firmware says no πŸ’€

and that's the whole page bestie, you ate that πŸ’– this one ships out from ./include/uapi/linux, dated October 2026 β€” so mark your calendar, she's a whole month βœ¨πŸ¦‹πŸŽ€ mwah, go forth and ioctl responsibly πŸ§šπŸ’œ

πŸ“¦ where this page comes from