struct kvm_vcpu_events contains reserved fields. Let's use a designated initializer to avoid false positives in valgrind.
Signed-off-by: Christian Borntraeger <borntrae...@de.ibm.com> --- target-i386/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 7919d3e..43963c1 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -1884,7 +1884,7 @@ static int kvm_put_apic(X86CPU *cpu) static int kvm_put_vcpu_events(X86CPU *cpu, int level) { CPUX86State *env = &cpu->env; - struct kvm_vcpu_events events; + struct kvm_vcpu_events events = {}; if (!kvm_has_vcpu_events()) { return 0; -- 1.9.3