On 11.02.2022 08:23, Norbert Manthey wrote: > --- a/xen/arch/x86/cpuid.c > +++ b/xen/arch/x86/cpuid.c > @@ -609,7 +609,7 @@ void __init init_guest_cpuid(void) > bool recheck_cpu_features(unsigned int cpu) > { > bool okay = true; > - struct cpuinfo_x86 c; > + struct cpuinfo_x86 c = boot_cpu_data; > const struct cpuinfo_x86 *bsp = &boot_cpu_data; > unsigned int i;
While I agree with the need to initialize the local variable, I don't think it should be pre-seeded with previous indentification results: This could end up hiding bugs. Instead I'd see it simply be zero-filled. Jan