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

Function is_sev_snp_supported

util/amdtool/cpu.c:242–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static bool is_sev_snp_supported(void)
243{
244 cpuid_result_t cpuid_regs;
245
246 if (cpuid(0x80000000) < 0x8000001f)
247 return false;
248
249 cpuid_regs = cpuid_ext(0x8000001f, 0x0);
250 return !!(cpuid_regs.eax & 0x10);
251}
252
253static unsigned int get_sev_max_guest_num(void)
254{

Callers 1

print_sevFunction · 0.85

Calls 2

cpuidFunction · 0.70
cpuid_extFunction · 0.70

Tested by

no test coverage detected