mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 05:02:24 +00:00
hv: vcpuid: disable some features in cpuid
We didn't emualte them well, so just disable them. Here are PMU CPUID.0A, Intel RDT CPUID.0F and CPUID.10, Intel SGX CPUID.12, Intel Processor Trace CPUID.14 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
parent
42aaf5d46f
commit
b75a7df415
@ -112,13 +112,6 @@ static void init_vcpuid_entry(__unused struct vm *vm,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x0aU:
|
|
||||||
/* not support pmu */
|
|
||||||
entry->eax = 0U;
|
|
||||||
entry->ebx = 0U;
|
|
||||||
entry->ecx = 0U;
|
|
||||||
entry->edx = 0U;
|
|
||||||
break;
|
|
||||||
case 0x16U:
|
case 0x16U:
|
||||||
if (boot_cpu_data.cpuid_level >= 0x16U) {
|
if (boot_cpu_data.cpuid_level >= 0x16U) {
|
||||||
/* call the cpuid when 0x16 is supported */
|
/* call the cpuid when 0x16 is supported */
|
||||||
@ -252,6 +245,17 @@ int set_vcpuid_entries(struct vm *vm)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* These features are disabled */
|
||||||
|
/* PMU is not supported */
|
||||||
|
case 0x0aU:
|
||||||
|
/* Intel RDT */
|
||||||
|
case 0x0fU:
|
||||||
|
case 0x10U:
|
||||||
|
/* Intel SGX */
|
||||||
|
case 0x12U:
|
||||||
|
/* Intel Processor Trace */
|
||||||
|
case 0x14U:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
init_vcpuid_entry(vm, i, 0U, 0U, &entry);
|
init_vcpuid_entry(vm, i, 0U, 0U, &entry);
|
||||||
result = set_vcpuid_entry(vm, &entry);
|
result = set_vcpuid_entry(vm, &entry);
|
||||||
|
Loading…
Reference in New Issue
Block a user