tdx_mcall_extend_rtmr(9)
π tdx_mcall_extend_rtmr β a Kernel API Manual moment (section 9, bestie) π
okay so real talk, this is a page from the Kernel API Manual, and it's all about tdx_mcall_extend_rtmr β which is literally just a wrapper to extend RTMR registers using the TDG.MR.RTMR.EXTEND TDCALL. that's the whole vibe. let's get into it β¨
πΈ SYNOPSIS πΈ
int tdx_mcall_extend_rtmr (u8 index , u8 *data );
like, that's the signature. memorize it. it's giving "small function, big responsibilities" π«Ά
π ARGUMENTS π
indexβ the index of the RTMR register you wanna extend. yes, you have to tell it which one. no vibes-based guessing allowed πdataβ the address of the input buffer holding the RTMR register extend data. it's au8 *, so it's bytes, and it's your job to make sure they're the right bytes bestie π
π¦ DESCRIPTION π¦
so for the actual lore: go read the section titled "TDG.MR.RTMR.EXTEND leaf" in the TDX Module v1.0 specification β that's where the real info on the TDG.MR.RTMR.EXTEND TDCALL lives. this page is just the wrapper energy, the spec is the main character πβ¨
it's used in the TDX guest driver module to let the user extend the RTMR registers. that's the whole purpose. iconic, frankly π
and here's the return value tea β β pay attention because this is the part people mess up:
- returns
0on success (slay π) -ENXIOfor invalid operands (you gave it nonsense, bestie π)-EBUSYfor busy operation (it's booked and busy, try again later π)-EIOon other TDCALL failures (the generic "something went sideways" of it all)
ngl, keep an eye on those negative returns β a 0 is the only one that means you actually ate π₯
β SEE ALSO β
go peek at these, they're all part of the same friend group:
- the kernel file
./arch/x86/coco/tdx/tdx.c tdx_mcall_get_report0(9)tdx_hcall_get_quote(9)
iykyk π
and that's the page!! huge shoutout to the folks over at ./arch/x86/coco/tdx for shipping this in October 2026 β periodt, go extend some RTMR registers responsibly π§ββοΈππ
π¦ 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