Received: from eggs.gnu.org ([2001:4830:134:3::10]:33467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjm9t-0003OT-DG for qemu-devel@nongnu.org; Thu, 30 Oct 2014 05:36:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xjm9j-0007DN-GV for qemu-devel@nongnu.org; Thu, 30 Oct 2014 05:36:45 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:47055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjm9j-0007Cn-7L for qemu-devel@nongnu.org; Thu, 30 Oct 2014 05:36:35 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 30 Oct 2014 09:36:34 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 1A5341B08023 for ; Thu, 30 Oct 2014 09:36:35 +0000 (GMT) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s9U9aVEZ13631768 for ; Thu, 30 Oct 2014 09:36:31 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s9U9aTEU023486 for ; Thu, 30 Oct 2014 03:36:30 -0600 From: Christian Borntraeger Date: Thu, 30 Oct 2014 10:36:47 +0100 Message-Id: <1414661809-21383-8-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1414661809-21383-1-git-send-email-borntraeger@de.ibm.com> References: <1414661809-21383-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PATCH 7/9] valgrind/i386: avoid false positives on KVM_GET_MSRS ioctl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Maydell Cc: Christian Borntraeger , qemu-devel struct kvm_msrs contains a pad field. Lets initialize this pad field. A designated initializer seems not appropriate here, as struct kvm_msrs is embedded in the msr_data structure. Signed-off-by: Christian Borntraeger --- target-i386/kvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 6203634..90020cb 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -1628,6 +1628,7 @@ static int kvm_get_msrs(X86CPU *cpu) } msr_data.info.nmsrs = n; + msr_data.info.pad = 0; ret = kvm_vcpu_ioctl(CPU(cpu), KVM_GET_MSRS, &msr_data); if (ret < 0) { return ret; -- 1.9.3