We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab97963 commit cfc8790Copy full SHA for cfc8790
hypervisor/arch/x86/cpu.c
@@ -128,6 +128,10 @@ static void get_cpu_capabilities(void)
128
uint32_t eax, unused;
129
uint32_t family, model;
130
131
+ cpuid(CPUID_VENDORSTRING,
132
+ &boot_cpu_data.cpuid_level,
133
+ &unused, &unused, &unused);
134
+
135
cpuid(CPUID_FEATURES, &eax, &unused,
136
&boot_cpu_data.cpuid_leaves[FEAT_1_ECX],
137
&boot_cpu_data.cpuid_leaves[FEAT_1_EDX]);
hypervisor/include/arch/x86/cpu.h
@@ -244,6 +244,7 @@ struct cpuinfo_x86 {
244
uint8_t x86, x86_model;
245
uint8_t x86_virt_bits;
246
uint8_t x86_phys_bits;
247
+ uint32_t cpuid_level;
248
uint32_t extended_cpuid_level;
249
uint64_t physical_address_mask;
250
uint32_t cpuid_leaves[FEATURE_WORDS];
0 commit comments