aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2020-04-29 03:42:01 -0400
committerCornelia Huck <cohuck@redhat.com>2020-06-05 17:13:11 +0200
commitf555638c0ef9e9eb47677879fff7ca6f4b04df66 (patch)
treedf235f0ee64a5ff0c92b57c4a81b6fe03f6fa33c /target
parentb489f015fbe2bd59d409211f79ea0a8ac5d2a66d (diff)
downloadqemu-f555638c0ef9e9eb47677879fff7ca6f4b04df66.zip
qemu-f555638c0ef9e9eb47677879fff7ca6f4b04df66.tar.gz
qemu-f555638c0ef9e9eb47677879fff7ca6f4b04df66.tar.bz2
s390x/kvm: help valgrind in several places
We need some little help in the code to reduce the valgrind noise. This patch does this with some designated initializers for the cpu model features and subfunctions. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Message-Id: <20200429074201.100924-1-borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target')
-rw-r--r--target/s390x/kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
index 69881a0..f2f75d2 100644
--- a/target/s390x/kvm.c
+++ b/target/s390x/kvm.c
@@ -2165,7 +2165,7 @@ int kvm_arch_msi_data_to_gsi(uint32_t data)
static int query_cpu_subfunc(S390FeatBitmap features)
{
- struct kvm_s390_vm_cpu_subfunc prop;
+ struct kvm_s390_vm_cpu_subfunc prop = {};
struct kvm_device_attr attr = {
.group = KVM_S390_VM_CPU_MODEL,
.attr = KVM_S390_VM_CPU_MACHINE_SUBFUNC,
@@ -2292,7 +2292,7 @@ static int kvm_to_feat[][2] = {
static int query_cpu_feat(S390FeatBitmap features)
{
- struct kvm_s390_vm_cpu_feat prop;
+ struct kvm_s390_vm_cpu_feat prop = {};
struct kvm_device_attr attr = {
.group = KVM_S390_VM_CPU_MODEL,
.attr = KVM_S390_VM_CPU_MACHINE_FEAT,