summaryrefslogtreecommitdiffstats
path: root/kvm-all.c
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2014-10-14 11:50:27 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-12-15 12:21:01 +0100
commitd229b985b504261369f2035936cc147c2606fa92 (patch)
tree2f69e806a067057196f873402fe7beffc8b55248 /kvm-all.c
parent9fc0e2d8ac10c1bb08720b44a4cf9190f1ab4f9e (diff)
downloadhqemu-d229b985b504261369f2035936cc147c2606fa92.zip
hqemu-d229b985b504261369f2035936cc147c2606fa92.tar.gz
valgrind: avoid false positives in KVM_GET_DIRTY_LOG ioctl
struct kvm_dirty_log contains padding fields that trigger false positives in valgrind. Let's use a designated initializer to avoid false positives from valgrind/memcheck. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c
index c86626f..4bfeccc 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -417,7 +417,7 @@ static int kvm_physical_sync_dirty_bitmap(MemoryRegionSection *section)
{
KVMState *s = kvm_state;
unsigned long size, allocated_size = 0;
- KVMDirtyLog d;
+ KVMDirtyLog d = {};
KVMSlot *mem;
int ret = 0;
hwaddr start_addr = section->offset_within_address_space;
OpenPOWER on IntegriCloud