STRUCT SVSM_VTPM_RESPONSE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 just 0. 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 🧚

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