OSDN Git Service

pc-bios/s390-ccw/virtio: Read device config after feature negotiation
authorThomas Huth <thuth@redhat.com>
Mon, 4 Jul 2022 11:18:58 +0000 (13:18 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 6 Jul 2022 16:34:43 +0000 (18:34 +0200)
commitaa5c69ce99411c4886bcd051f288afc02b6d968d
tree8e427edbc3492f2aa07e51665f53b660ef8716d4
parent175aa06a152ef6b58ba9b2e47a1296b024dea70c
pc-bios/s390-ccw/virtio: Read device config after feature negotiation

Feature negotiation should be done first, since some fields in the
config area can depend on the negotiated features and thus should
rather be read afterwards.

While we're at it, also adjust the error message here a little bit
(the code is nowadays used for non-block virtio devices, too).

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