kvm: Silence warning from valgrind
commit03a96b83b539498510e22aab585e41015ba18247
authorThomas Huth <thuth@redhat.com>
Mon, 27 Apr 2015 16:59:04 +0000 (27 18:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 30 Apr 2015 14:55:16 +0000 (30 16:55 +0200)
treec23b9a37748681d96b9e9b5002c8cc0fc24dfee5
parent498147529d1f8e902e6528a0115143b53475791e
kvm: Silence warning from valgrind

valgrind complains here about uninitialized bytes with the following message:

==17814== Syscall param ioctl(generic) points to uninitialised byte(s)
==17814==    at 0x466A780: ioctl (in /usr/lib64/power8/libc-2.17.so)
==17814==    by 0x100735B7: kvm_vm_ioctl (kvm-all.c:1920)
==17814==    by 0x10074583: kvm_set_ioeventfd_mmio (kvm-all.c:574)

Let's fix it by using a proper struct initializer in kvm_set_ioeventfd_mmio().

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1430153944-24368-1-git-send-email-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
kvm-all.c