MCPcopy Create free account
hub / github.com/coreboot/coreboot / is_sev_supported

Function is_sev_supported

util/amdtool/cpu.c:220–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static bool is_sev_supported(void)
221{
222 cpuid_result_t cpuid_regs;
223
224 if (cpuid(0x80000000) < 0x8000001f)
225 return false;
226
227 cpuid_regs = cpuid_ext(0x8000001f, 0x0);
228 return !!(cpuid_regs.eax & 2);
229}
230
231static bool is_sev_es_supported(void)
232{

Callers 1

print_sevFunction · 0.85

Calls 2

cpuidFunction · 0.70
cpuid_extFunction · 0.70

Tested by

no test coverage detected