Initialize entire cpuid2 structure
PATCH 1/1 Initialize entire cpuid2 structure
Uninitialized fields may contain garbage.
Signed-off-by Gleb Natapov <[email protected]>
qemu/qemu-kvm-x86.c +2 -0
@@ -468,6 +468,8 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *e, uint32_t function, env->regs[R_ECX ] = count;qemu_kvm_cpuid_on_env (env); e->function = function; + e->flags =0 ; + e->index =0 ; e->eax = env->regs[R_EAX ]; e->ebx = env->regs[R_EBX ]; e->ecx = env->regs[R_ECX ];
--
Gleb.
Quoted 3 lines · Gleb Natapov
Uninitialized fields may contain garbage.
Signed-off-by Gleb Natapov <[email protected]>
Acked-by Amit Shah <[email protected]>
Avi Kivity
AppliedQuoted 3 lines · Gleb Natapov
Uninitialized fields may contain garbage.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function