[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/9] valgrind: avoid false positives in KVM_GET_DIRT
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PATCH 1/9] valgrind: avoid false positives in KVM_GET_DIRTY_LOG ioctl |
Date: |
Thu, 30 Oct 2014 10:36:41 +0100 |
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 <address@hidden>
---
kvm-all.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kvm-all.c b/kvm-all.c
index 44a5e72..b951320 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -400,7 +400,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;
--
1.9.3
- [Qemu-devel] [PATCH 0/9] valgrind/i386/s390x: memcheck false positives, Christian Borntraeger, 2014/10/30
- [Qemu-devel] [PATCH 2/9] valgrind/i386: avoid false positives on KVM_SET_CLOCK ioctl, Christian Borntraeger, 2014/10/30
- [Qemu-devel] [PATCH 6/9] valgrind/i386: avoid false positives on KVM_SET_MSRS(TSC) ioctl, Christian Borntraeger, 2014/10/30
- [Qemu-devel] [PATCH 8/9] valgrind/i386: avoid false positives on KVM_SET_VCPU_EVENTS ioctl, Christian Borntraeger, 2014/10/30
- [Qemu-devel] [PATCH 1/9] valgrind: avoid false positives in KVM_GET_DIRTY_LOG ioctl,
Christian Borntraeger <=
- [Qemu-devel] [PATCH 7/9] valgrind/i386: avoid false positives on KVM_GET_MSRS ioctl, Christian Borntraeger, 2014/10/30
- [Qemu-devel] [PATCH 9/9] valgrind/s390x: avoid false positives on KVM_SET_FPU ioctl, Christian Borntraeger, 2014/10/30
- [Qemu-devel] [PATCH 3/9] valgrind/i386: avoid false positives on KVM_SET_PIT ioctl, Christian Borntraeger, 2014/10/30
- [Qemu-devel] [PATCH 5/9] valgrind/i386: avoid false positives on KVM_SET_MSRS ioctl, Christian Borntraeger, 2014/10/30
- [Qemu-devel] [PATCH 4/9] valgrind/i386: avoid false positives on KVM_SET_XCRS ioctl, Christian Borntraeger, 2014/10/30
- Re: [Qemu-devel] [PATCH 0/9] valgrind/i386/s390x: memcheck false positives, Peter Maydell, 2014/10/30
- Re: [Qemu-devel] [PATCH 0/9] valgrind/i386/s390x: memcheck false positives, Paolo Bonzini, 2014/10/31