[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 19/20] s390x/pv: Retry ioctls on -EINTR
From: |
Cornelia Huck |
Subject: |
[PULL 19/20] s390x/pv: Retry ioctls on -EINTR |
Date: |
Thu, 30 Apr 2020 11:44:44 +0200 |
From: Christian Borntraeger <address@hidden>
PV_ENABLE (and maybe others) might return -EINTR when a signal is
pending. See the Linux kernel patch "s390/gmap: return proper error code
on ksm unsharing" for details. Let us retry the ioctl in that case.
Fixes: c3347ed0d2ee ("s390x: protvirt: Support unpack facility")
Reported-by: Marc Hartmayer <address@hidden>
Acked-by: Janosch Frank <address@hidden>
Tested-by: Marc Hartmayer <address@hidden>
Signed-off-by: Christian Borntraeger <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
hw/s390x/pv.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/hw/s390x/pv.c b/hw/s390x/pv.c
index a40a8448060c..cb0dce4a4f06 100644
--- a/hw/s390x/pv.c
+++ b/hw/s390x/pv.c
@@ -23,7 +23,11 @@ static int __s390_pv_cmd(uint32_t cmd, const char *cmdname,
void *data)
.cmd = cmd,
.data = (uint64_t)data,
};
- int rc = kvm_vm_ioctl(kvm_state, KVM_S390_PV_COMMAND, &pv_cmd);
+ int rc;
+
+ do {
+ rc = kvm_vm_ioctl(kvm_state, KVM_S390_PV_COMMAND, &pv_cmd);
+ } while (rc == -EINTR);
if (rc) {
error_report("KVM PV command %d (%s) failed: header rc %x rrc %x "
--
2.21.1
- [PULL 09/20] s390x: protvirt: Move STSI data over SIDAD, (continued)
- [PULL 09/20] s390x: protvirt: Move STSI data over SIDAD, Cornelia Huck, 2020/04/30
- [PULL 10/20] s390x: protvirt: SCLP interpretation, Cornelia Huck, 2020/04/30
- [PULL 11/20] s390x: protvirt: Set guest IPL PSW, Cornelia Huck, 2020/04/30
- [PULL 12/20] s390x: protvirt: Move diag 308 data over SIDA, Cornelia Huck, 2020/04/30
- [PULL 13/20] s390x: protvirt: Disable address checks for PV guest IO emulation, Cornelia Huck, 2020/04/30
- [PULL 14/20] s390x: protvirt: Move IO control structures over SIDA, Cornelia Huck, 2020/04/30
- [PULL 15/20] s390x: protvirt: Handle SIGP store status correctly, Cornelia Huck, 2020/04/30
- [PULL 16/20] docs: system: Add protvirt docs, Cornelia Huck, 2020/04/30
- [PULL 17/20] s390x: Add unpack facility feature to GA1, Cornelia Huck, 2020/04/30
- [PULL 18/20] s390x: protvirt: Fix stray error_report_err in s390_machine_protect, Cornelia Huck, 2020/04/30
- [PULL 19/20] s390x/pv: Retry ioctls on -EINTR,
Cornelia Huck <=
- [PULL 20/20] s390x/s390-virtio-ccw: Fix build on systems without KVM, Cornelia Huck, 2020/04/30
- Re: [PULL 00/20] first set of s390x patches for 5.1, Peter Maydell, 2020/04/30
- Re: [PULL 00/20] first set of s390x patches for 5.1, no-reply, 2020/04/30