diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-10-30 09:23:41 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-12-15 12:21:01 +0100 |
commit | bdfc8480c50a53d91aa9a513d23a84de0d5fbc86 (patch) | |
tree | 15a28933ffff303a615cfda128fc0e52d9c4e3ab | |
parent | b0a0551283076c6f3e57cf2bdd525334009b2677 (diff) |
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>
-rw-r--r-- | target-i386/kvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 3a3dfc4795..42f8def0fa 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; |