STRUCT SVSM_VTPM_CMD_RESPONSE(9)
π NAME π
okay so bestie, welcome to the manual page for struct svsm_vtpm_cmd_response β it's the struct you get back for a TPM_SEND_COMMAND response. that's it, that's the vibe. it's the lil' container that holds whatever the TPM sent back to you π«Ά
(this whole page lives under struct svsm...cmd_response(9) in the Kernel API Manual, iykyk β¨)
π¦ SYNOPSIS π¦
struct svsm_vtpm_cmd_response {
u32 buf_size;
u8 buf[];
};
like, literally two members. tiny struct, main character energy π
π Members π
buf_sizeβ the size of the output buffer that follows. it's theu32that tells you how much buffer is actually behind the curtain πbufβ a buffer of sizebuf_size. the actual payload lives here, and its size is, surprise,buf_sizeπ
πΈ Description πΈ
so this struct is defined by the AMD SVSM spec [1] β specifically in the section called "8.2 SVSM_VTPM_CMD Call", Table 17: TPM_SEND_COMMAND Response Structure. and here's how that table lays out, no cap:
- Byte Offset
0x000β Size (Bytes)4β Meaning: response size (in bytes) β¨ - Byte Offset
0x004β Size (Bytes)Variableβ Meaning: response π
so yeah, the first 4 bytes tell you how big the response is, and then the response itself is variable-length right after. it's giving "header then payload", and honestly? obsessed π
π SEE ALSO π
- Kernel file
./include/linux/tpm_svsm.h struct svsm_vtpm_request(9)struct svsm_vtpm_response(9)struct svsm_vtpm_cmd_request(9)svsm_vtpm_cmd_request_fill(9)svsm_vtpm_cmd_response_parse(9)
anyway bestie that's the whole page, mwah π β this one's from ./include/linux, dated October 2026, and it signs off as struct svsm...cmd_response(9). slay, go read those TPM structs, periodt π₯π
π¦ 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