mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 22:18:17 +00:00
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:
parent
ea672c5b07
commit
68643b619f
@ -206,7 +206,7 @@ int32_t set_vcpuid_entries(struct acrn_vm *vm)
|
||||
|
||||
for (i = 1U; i <= limit; i++) {
|
||||
/* cpuid 1/0xb is percpu related */
|
||||
if ((i == 1U) || (i == 0xbU)) {
|
||||
if ((i == 1U) || (i == 0xbU) || (i == 0xdU)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -225,20 +225,6 @@ int32_t set_vcpuid_entries(struct acrn_vm *vm)
|
||||
}
|
||||
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 */
|
||||
/* PMU is not supported */
|
||||
case 0x0aU:
|
||||
|
Loading…
Reference in New Issue
Block a user