STRUCT SVSM_VTPM_RESPONSE(9)
π struct svsm_vtpm_response(9) π
okay so bestie, welcome to the Kernel API Manual page for struct svsm_vtpm_response β literally the "Generic response" struct, and yes it's as tiny and iconic as it sounds π
β¨ SYNOPSIS β¨
struct svsm_vtpm_response {
u32 size;
};
that's it. that's the whole vibe. one member. main character energy, zero filler π
πΈ MEMBERS πΈ
sizeβ the response size, and it's zero if nothing follows π«Ά like, if there's no payload after it, it's just0. periodt.
π¦ DESCRIPTION π¦
This struct is defined by the AMD SVSM spec [1], in the section called "8.2 SVSM_VTPM_CMD Call" β specifically Table 15: vTPM Common Request/Response Structure. slay, citation game strong π
Here's the deets from that table, laid out so it's actually readable:
- Byte Offset:
0x000 - Size (Bytes):
4 - In/Out:
In= Platform command;Out= Platform command response size
so yeah, it's four bytes at offset 0x000, and it does double duty β in one direction it's the platform command, in the other it's the platform command response size. multitasking icon π
β NOTE β
ngl this part is important: most TCG Simulator commands simply return zero here with no indication of success or failure π so don't go reading the size field expecting a vibe check on whether things worked, because it will not tell you. it's giving "no thoughts, head empty" fr fr π
π§ SEE ALSO π§
- Kernel file
./include/linux/tpm_svsm.h struct svsm_vtpm_request(9)struct svsv_vtpm_cmd_request(9)β wait, no, bestie, that'sstruct svsm_vtpm_cmd_request(9)π«Άstruct svsm_vtpm_cmd_response(9)svsm_vtpm_cmd_request_fill(9)svsm_vtpm_cmd_response_parse(9)
go read those next, iykyk π
and that's the page!! brought to you by ./include/linux, dated October 2026, and yeah the title up top is literally struct svsm_vtpm_response(9) again because tradition β¨ mwah, love u, bye π
π¦ 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