From: Christian Borntraeger Date: Thu, 30 Oct 2014 08:33:43 +0000 (+0100) Subject: valgrind/i386: avoid false positives on KVM_SET_VCPU_EVENTS ioctl X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=076796f8fd27f4d014fe2efb6372f1cdc1df9a41;p=qemu.git valgrind/i386: avoid false positives on KVM_SET_VCPU_EVENTS ioctl struct kvm_vcpu_events contains reserved fields. Let's use a designated initializer to avoid false positives in valgrind. Signed-off-by: Christian Borntraeger Signed-off-by: Paolo Bonzini --- diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 1762c2e184..4a2ee6fd32 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;