mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
hv: vcpuid: leaf 02h has no subleaf, delete un-needed code.
According to SDM Vol. 2A 3-191 & Vol. 2A 3-213, leaf 02h has no subleaf. This patch removes the un-needed code. 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
44bee5168e
commit
83f32c93f0
@ -211,26 +211,6 @@ int32_t set_vcpuid_entries(struct acrn_vm *vm)
|
||||
}
|
||||
|
||||
switch (i) {
|
||||
case 0x02U:
|
||||
{
|
||||
uint32_t times;
|
||||
|
||||
init_vcpuid_entry(i, 0U, CPUID_CHECK_SUBLEAF, &entry);
|
||||
result = set_vcpuid_entry(vm, &entry);
|
||||
if (result == 0) {
|
||||
times = entry.eax & 0xffUL;
|
||||
for (j = 1U; j < times; j++) {
|
||||
init_vcpuid_entry(i, j, CPUID_CHECK_SUBLEAF, &entry);
|
||||
result = set_vcpuid_entry(vm, &entry);
|
||||
if (result != 0) {
|
||||
/* wants to break out of switch */
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 0x04U:
|
||||
for (j = 0U; ; j++) {
|
||||
init_vcpuid_entry(i, j, CPUID_CHECK_SUBLEAF, &entry);
|
||||
|
Loading…
Reference in New Issue
Block a user