hv: vcpuid: leaf 0dh is percpu related

cpuid leaf 0dh is percpu related, no need to init in vcpuid_entries for vm.

Tracked-On: #861
Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Binbin Wu 2018-12-25 13:22:11 +08:00 committed by wenlingz
parent ea672c5b07
commit 68643b619f

View File

@ -206,7 +206,7 @@ int32_t set_vcpuid_entries(struct acrn_vm *vm)
for (i = 1U; i <= limit; i++) { for (i = 1U; i <= limit; i++) {
/* cpuid 1/0xb is percpu related */ /* cpuid 1/0xb is percpu related */
if ((i == 1U) || (i == 0xbU)) { if ((i == 1U) || (i == 0xbU) || (i == 0xdU)) {
continue; continue;
} }
@ -225,20 +225,6 @@ int32_t set_vcpuid_entries(struct acrn_vm *vm)
} }
break; break;
case 0x0dU:
for (j = 0U; j < 64U; j++) {
init_vcpuid_entry(i, j, CPUID_CHECK_SUBLEAF, &entry);
if (entry.eax == 0U) {
continue;
}
result = set_vcpuid_entry(vm, &entry);
if (result != 0) {
/* wants to break out of switch */
break;
}
}
break;
/* These features are disabled */ /* These features are disabled */
/* PMU is not supported */ /* PMU is not supported */
case 0x0aU: case 0x0aU: