hv: vcpuid: leaf 0dh is percpu related
cpuid leaf 0dh is percpu related, no need to init in vcpuid_entries for vm.
Acked-by: Eddie Dong
@@ -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:
