[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/20] css: fix actl handling for unit exceptions
From: |
Thomas Huth |
Subject: |
[PULL 02/20] css: fix actl handling for unit exceptions |
Date: |
Tue, 7 Sep 2021 15:14:31 +0200 |
From: Cornelia Huck <cohuck@redhat.com>
When a subchannel becomes pending with unit exception, start
pending (and for that matter, halt or clear pending) are not
removed in the actl. Device active and subchannel active,
however, are (due to the subchannel becoming status pending
with primary respectively secondary status).
The other conditions in the actl are only cleared when the
guest executes tsch on the subchannel.
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Tested-by: Jared Rossi <jrossi@linux.ibm.com>
Message-Id: <20210705163952.736020-3-cohuck@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
include/hw/s390x/css.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/hw/s390x/css.h b/include/hw/s390x/css.h
index 10ed1df1bb..75e5381613 100644
--- a/include/hw/s390x/css.h
+++ b/include/hw/s390x/css.h
@@ -146,7 +146,8 @@ struct SubchDev {
static inline void sch_gen_unit_exception(SubchDev *sch)
{
- sch->curr_status.scsw.ctrl &= ~SCSW_ACTL_START_PEND;
+ sch->curr_status.scsw.ctrl &= ~(SCSW_ACTL_DEVICE_ACTIVE |
+ SCSW_ACTL_SUBCH_ACTIVE);
sch->curr_status.scsw.ctrl |= SCSW_STCTL_PRIMARY |
SCSW_STCTL_SECONDARY |
SCSW_STCTL_ALERT |
--
2.27.0
- [PULL 00/20] s390x patches, Thomas Huth, 2021/09/07
- [PULL 01/20] vfio-ccw: forward halt/clear errors, Thomas Huth, 2021/09/07
- [PULL 02/20] css: fix actl handling for unit exceptions,
Thomas Huth <=
- [PULL 03/20] tests/tcg/s390x: Test SIGILL and SIGSEGV handling, Thomas Huth, 2021/09/07
- [PULL 05/20] s390x/ioinst: Fix wrong MSCH alignment check on little endian, Thomas Huth, 2021/09/07
- [PULL 09/20] s390x/tcg: check for addressing exceptions for RRBE, SSKE and ISKE, Thomas Huth, 2021/09/07
- [PULL 04/20] s390x/tcg: fix and optimize SPX (SET PREFIX), Thomas Huth, 2021/09/07
- [PULL 07/20] s390x/tcg: fix ignoring bit 63 when setting the storage key in SSKE, Thomas Huth, 2021/09/07
- [PULL 08/20] s390x/tcg: convert real to absolute address for RRBE, SSKE and ISKE, Thomas Huth, 2021/09/07
- [PULL 06/20] s390x/tcg: wrap address for RRBE, Thomas Huth, 2021/09/07
- [PULL 10/20] s390x/mmu_helper: no need to pass access type to mmu_translate_asce(), Thomas Huth, 2021/09/07
- [PULL 12/20] s390x/mmu_helper: move address validation into mmu_translate*(), Thomas Huth, 2021/09/07
- [PULL 11/20] s390x/mmu_helper: fixup mmu_translate() documentation, Thomas Huth, 2021/09/07