STRUCT SEV_USER_DATA_SNP_CONFIG(9)
π NAME π
struct sev_user_data_snp_config β okay bestie, this is the system wide configuration value for SNP. Yes, the whole system. Main character struct energy, no cap π
This page lives in the Kernel API Manual, and honestly? It's giving "small struct, big responsibilities" β¨
π¦ SYNOPSIS π¦
struct sev_user_data_snp_config {
__u64 reported_tcb ;
__u32 mask_chip_id:1;
__u32 mask_chip_key:1;
__u32 rsvd:30;
__u8 rsvd1[52];
};
Look at her. Not a single wasted byte, literally. The bitfields are chef's kiss π
πΈ Members πΈ
Okay so let's meet the cast, one member at a time π«Ά
reported_tcbβ this is the TCB version that gets reported in the guest attestation report. It's a__u64, so it's got room, and it's out here representing your whole trustworthiness. Iconic of her, honestly πmask_chip_idβ a1-bit field answering the question: is the chip id present in attestation reports, or not? Two moods only, bestie β it's a yes/no icon πmask_chip_keyβ another1-bit cutie, and it tells you whether attestation reports are signed or not. Also just two options. Lowkey minimal, highkey important π₯rsvdβ reserved. That's it. That's the whole lore. Don't touch it, it's not for you π (it's:30bits wide, if you were curious β the three bitfields above add up to32total, math ate π)rsvd1β also reserved. This one's a__u8[52], so it's the big roomy reserved array. Still reserved. Still not yours. Respect the padding bestie β
Fr fr β reserved means reserved. Do not go inventing your own meaning for these bytes. Future-you (and future-kernel) will not thank you π
π SEE ALSO π
Kernel file ./include/uapi/linux/psp-sev.h struct β that's the home base, go say hi π
The whole squad, in the exact order the page lists them:
struct sev_user_data_status(9)struct sev_user_data_pek_csr(9)struct sev_user_data_pdh_cert_export(9)struct sev_user_data_get_id(9)struct sev_user_data_get_id2(9)struct sev_user_data_snp_status(9)struct sev_issue_cmd(9)
π« And that's the whole page, bestie β struct read, vibes immaculate, zero bytes harmed. This one came from ./include/uapi/linux, dated October 2026, so mark your calendar and hydrate before you touch any firmware ππ§β¨
π¦ 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