mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 23:45:12 -04:00
Requests for invalid CPUID leaves should map to the highest known leaf instead.
Reviewed by: grehan Obtained from: NetApp
This commit is contained in:
parent
7c695febc9
commit
25448de222
1 changed files with 2 additions and 2 deletions
|
|
@ -54,8 +54,6 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
|
|||
unsigned int func, regs[4];
|
||||
enum x2apic_state x2apic_state;
|
||||
|
||||
func = *eax;
|
||||
|
||||
/*
|
||||
* Requests for invalid CPUID levels should map to the highest
|
||||
* available level instead.
|
||||
|
|
@ -70,6 +68,8 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
|
|||
*eax = cpu_high;
|
||||
}
|
||||
|
||||
func = *eax;
|
||||
|
||||
/*
|
||||
* In general the approach used for CPU topology is to
|
||||
* advertise a flat topology where all CPUs are packages with
|
||||
|
|
|
|||
Loading…
Reference in a new issue