]> git.proxmox.com Git - qemu.git/commit - kvm-all.c
kvm: fill in padding to help valgrind
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 29 Feb 2012 15:54:29 +0000 (17:54 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 7 Mar 2012 10:31:48 +0000 (12:31 +0200)
commit7e680753cfa2986e0a8b3b222b6bf0b003c5eb69
tree30e58d17254b14fc37130aa66b041edc1dd017a2
parent5d17c0d2df4998598e6002b27b8e47e792899a0f
kvm: fill in padding to help valgrind

valgrind warns about padding fields which are passed
to vcpu ioctls uninitialized.
This is not an error in practice because kvm ignored padding.
Since the ioctls in question are off data path and
the cost is zero anyway, initialize padding to 0
to suppress these errors.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm-all.c
target-i386/kvm.c