[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 1/7] vfio-ccw: Return IOINST_CC_NOT_OPERATIONAL for EIO
From: |
Eric Farman |
Subject: |
[RFC PATCH v2 1/7] vfio-ccw: Return IOINST_CC_NOT_OPERATIONAL for EIO |
Date: |
Thu, 6 Feb 2020 22:45:03 +0100 |
From: Farhan Ali <address@hidden>
EIO is returned by vfio-ccw mediated device when the backing
host subchannel is not operational anymore. So return cc=3
back to the guest, rather than returning a unit check.
This way the guest can take appropriate action such as
issue an 'stsch'.
Signed-off-by: Farhan Ali <address@hidden>
Signed-off-by: Eric Farman <address@hidden>
---
Notes:
v1->v2: [EF]
- Add s-o-b
- [Seems the discussion on v1 centered on the return code
set in the kernel, rather than anything that needs to
change here, unless I've missed something.]
hw/vfio/ccw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
index 50cc2ec75c..19144ecfc7 100644
--- a/hw/vfio/ccw.c
+++ b/hw/vfio/ccw.c
@@ -114,6 +114,7 @@ again:
return IOINST_CC_BUSY;
case -ENODEV:
case -EACCES:
+ case -EIO:
return IOINST_CC_NOT_OPERATIONAL;
case -EFAULT:
default:
--
2.17.1
- [RFC PATCH v2 0/7] s390x/vfio_ccw: Channel Path Handling [QEMU], Eric Farman, 2020/02/06
- [RFC PATCH v2 2/7] linux-headers: update, Eric Farman, 2020/02/06
- [RFC PATCH v2 5/7] vfio-ccw: Add support for the crw region, Eric Farman, 2020/02/06
- [RFC PATCH v2 3/7] vfio-ccw: Refactor cleanup of regions, Eric Farman, 2020/02/06
- [RFC PATCH v2 1/7] vfio-ccw: Return IOINST_CC_NOT_OPERATIONAL for EIO,
Eric Farman <=
- [RFC PATCH v2 7/7] vfio-ccw: Add support for the CRW irq, Eric Farman, 2020/02/06
- [RFC PATCH v2 6/7] vfio-ccw: Refactor ccw irq handler, Eric Farman, 2020/02/06
- [RFC PATCH v2 4/7] vfio-ccw: Add support for the schib region, Eric Farman, 2020/02/06