snp_svsm_vtpm_send_command(9)
π snp_svsm_vtpm_send_command(9) β the Kernel API Manual glow-up π
okay so bestie, buckle up, because this is a kernel API function from the Kernel API Manual and it's lowkey iconic. It's called snp_svsm_vtpm_send_command and it does exactly what it says on the tin: executes a vTPM operation on SVSM. periodt.
β¨ NAME β¨
snp_svsm_vtpm_send_command β Execute a vTPM operation on SVSM π¦
πΈ SYNOPSIS πΈ
int snp_svsm_vtpm_send_command (u8 *buffer );
π ARGUMENTS π
bufferβ a buffer that's doing double duty, no cap: you use it to both send the command and receive the response. one buffer, two jobs, main character energy fr fr. π«Ά
π DESCRIPTION π
So what it actually does: it executes an SVSM_VTPM_CMD call, as defined by "Secure VM Service Module for SEV-SNP Guests" Publication # 58019 Revision: 1.00. iykyk. π
Every single command request/response buffer shares a common structure, and the spec lays it out like this:
- Byte offset
0x000 - Size (Bytes)
4 - In/Out β
InandOut(both, bestie, it swings both ways π) - Description β
Inis the Platform command,Outis the Platform command response size
Each command can then build on top of that common request/response structure to make a structure that's specific to that command. it's giving customizable. π For the deets, go peek at include/linux/tpm_svsm.h β more details live there.
π RETURN π
0on success π-errnoon failure π
π¦ SEE ALSO π¦
- Kernel file
./arch/x86/coco/sev/svsm.c snp_svsm_vtpm_probe(9)
ngl, if you're poking at vTPM stuff on SEV-SNP guests, this is your girl. go off. π
kisses and good vibes from ./arch/x86/coco/sev β this page was dated October 2026, mwah πβ¨
π¦ 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