[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH 2/2] s390x/ccw: make sure all ccw devices are pr
From: |
Thomas Huth |
Subject: |
Re: [qemu-s390x] [PATCH 2/2] s390x/ccw: make sure all ccw devices are properly reset |
Date: |
Tue, 8 May 2018 07:05:24 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 07.05.2018 17:51, Cornelia Huck wrote:
> Thomas reported that the subchannel for a 3270 device that ended up
> in a broken state (status pending even though not enabled) did not
> get out of that state even after a reboot (which involves a subsytem
> reset). The reason for this is that the 3270 device did not define
> a reset handler.
>
> Let's fix this by introducing a base reset handler (set up for all
> ccw devices) that resets the subchannel and have virtio-ccw call
> its virtio-specific reset procedure in addition to that.
>
> Reported-by: Thomas Huth <address@hidden>
> Suggested-by: Christian Borntraeger <address@hidden>
> Signed-off-by: Cornelia Huck <address@hidden>
> ---
> hw/s390x/ccw-device.c | 8 ++++++++
> hw/s390x/virtio-ccw.c | 9 ++++++---
> hw/s390x/virtio-ccw.h | 1 +
> 3 files changed, 15 insertions(+), 3 deletions(-)
Looks good!
Reviewed-by: Thomas Huth <address@hidden>
I also checked that the broken 3270 device is now operational after a
reboot again with your two patches, so:
Tested-by: Thomas Huth <address@hidden>