aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2014-10-30 09:23:41 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-12-15 12:21:01 +0100
commitbdfc8480c50a53d91aa9a513d23a84de0d5fbc86 (patch)
tree15a28933ffff303a615cfda128fc0e52d9c4e3ab /target-i386
parentb0a0551283076c6f3e57cf2bdd525334009b2677 (diff)
downloadqemu-bdfc8480c50a53d91aa9a513d23a84de0d5fbc86.zip
qemu-bdfc8480c50a53d91aa9a513d23a84de0d5fbc86.tar.gz
qemu-bdfc8480c50a53d91aa9a513d23a84de0d5fbc86.tar.bz2
valgrind/i386: avoid false positives on KVM_SET_XCRS ioctl
struct kvm_xcrs contains padding bytes. 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 'target-i386')
-rw-r--r--target-i386/kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 3a3dfc4..42f8def 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -1085,7 +1085,7 @@ static int kvm_put_xsave(X86CPU *cpu)
static int kvm_put_xcrs(X86CPU *cpu)
{
CPUX86State *env = &cpu->env;
- struct kvm_xcrs xcrs;
+ struct kvm_xcrs xcrs = {};
if (!kvm_has_xcrs()) {
return 0;