Re: [PATCH] KVM: x86: Assign correct value to array.maxnent

2020-06-03 Thread Xiaoyao Li
On 6/4/2020 10:43 AM, Xiaoyao Li wrote: Delay the assignment of array.maxnent to use correct value for the case cpuid->nent > KVM_MAX_CPUID_ENTRIES. Fixes: e53c95e8d41e ("KVM: x86: Encapsulate CPUID entries and metadata in struct") Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 3 ++-

[PATCH] KVM: x86: Assign correct value to array.maxnent

2020-06-03 Thread Xiaoyao Li
Delay the assignment of array.maxnent to use correct value for the case cpuid->nent > KVM_MAX_CPUID_ENTRIES. Fixes: e53c95e8d41e ("KVM: x86: Encapsulate CPUID entries and metadata in struct") Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+), 1