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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246774
@ -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 New Issue
Block a user