]> Git Repo - qemu.git/commitdiff
valgrind/i386: avoid false positives on KVM_SET_VCPU_EVENTS ioctl
authorChristian Borntraeger <[email protected]>
Thu, 30 Oct 2014 08:33:43 +0000 (09:33 +0100)
committerPaolo Bonzini <[email protected]>
Mon, 15 Dec 2014 11:21:01 +0000 (12:21 +0100)
struct kvm_vcpu_events contains reserved fields. Let's use a
designated initializer to avoid false positives in valgrind.

Signed-off-by: Christian Borntraeger <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
target-i386/kvm.c

index 1762c2e184856adcef4d8736382140cd689b2e20..4a2ee6fd32995cc790f004f51bc63fc2c2b42185 100644 (file)
@@ -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;
This page took 0.031153 seconds and 4 git commands to generate.