projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d19ae73
)
valgrind/i386: avoid false positives on KVM_SET_VCPU_EVENTS ioctl
author
Christian Borntraeger
<borntraeger@de.ibm.com>
Thu, 30 Oct 2014 08:33:43 +0000
(09:33 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
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 <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/kvm.c
patch
|
blob
|
history
diff --git
a/target-i386/kvm.c
b/target-i386/kvm.c
index 1762c2e184856adcef4d8736382140cd689b2e20..4a2ee6fd32995cc790f004f51bc63fc2c2b42185 100644
(file)
--- 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;