pc-bios/s390-ccw/virtio: Set missing status bits while initializing
commit175aa06a152ef6b58ba9b2e47a1296b024dea70c
authorThomas Huth <thuth@redhat.com>
Mon, 4 Jul 2022 11:18:57 +0000 (4 13:18 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 6 Jul 2022 16:34:24 +0000 (6 18:34 +0200)
treeb5be028049ad48e343ba9228436bfd0ef92ae4cc
parent5447de2619050a0a4dd480b97f88a9b58da360d1
pc-bios/s390-ccw/virtio: Set missing status bits while initializing

According chapter "3.1.1 Driver Requirements: Device Initialization"
of the Virtio specification (v1.1), a driver for a device has to set
the ACKNOWLEDGE and DRIVER bits in the status field after resetting
the device. The s390-ccw bios skipped these steps so far and seems
like QEMU never cared. Anyway, it's better to follow the spec, so
let's set these bits now in the right spots, too.

Message-Id: <20220704111903.62400-7-thuth@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/virtio.c