| 218 | } |
| 219 | |
| 220 | static 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 | |
| 231 | static bool is_sev_es_supported(void) |
| 232 | { |