static struct tdx_global_metadata tgm { u64 TDX_FEATURES0; u32 BUILD_DATE; u16 BUILD_NUM; u16 MINOR_VERSION; } static void read_gunk() { int ret = 0; ret |= read_sys_metadata_field(0x0A00000300000008, &tgm.TDX_FEATURES0); ret |= read_sys_metadata_field(0x8800000200000001, &tgm.BUILD_DATE); ret |= read_sys_metadata_field(0x8800000100000002, &tgm.BUILD_NUM); ret |= read_sys_metadata_field(0x0800000100000003, &tgm.MINOR_VERSION); return ret; }