STRUCT SVSM_VTPM_REQUEST(9)
β¨ struct svsm_vtpm_request(9) β¨
okok so we're in the Kernel API Manual bestie, and today's main character is struct svsm_vtpm_request β literally just the generic request for a single word command π
πΈ NAME πΈ
struct svsm_vtpm_request β the generic request for single word command, no cap π
π¦ SYNOPSIS π¦
struct svsm_vtpm_request {
u32 cmd;
};
like, that's the whole thing. she's small. she's iconic. she contains multitudes (one multitude, actually) β¨
π Members π
cmdβ the command to send π¨ that's it, that's the job.
π Description π
so this whole struct is defined by the AMD SVSM spec [1], specifically in the section called "8.2 SVSM_VTPM_CMD Call" β Table 15: vTPM Common Request/Response Structure π§
here's the deets, laid out the way the spec lays 'em out:
- Byte Offset
0x000 - Size (Bytes)
4 - In/Out
Inβ Platform command - In/Out
Outβ Platform command response size
so like, same offset, same size, two directions β it's giving "one struct, two moods" ππ«Ά
π₯ SEE ALSO π₯
- Kernel file
./include/linux/tpm_svsm.h struct svsm_vtpm_response(9)struct svsm_vtpm_cmd_request(9)struct svsm_vtpm_cmd_response(9)svsm_vtpm_cmd_request_fill(9)svsm_vtpm_cmd_response_parse(9)
like go read those too, they're the rest of the friend group πβ¨
ngl this one's short but she ate. go forth and send your single word command, bestie π
and that's the whole page!! brought to you by the fine people over at ./include/linux, dated October 2026 β mwah, see u in the next one ππ«
π¦ 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