DIAG 308: extend subcode 10 to return UVC cmd id, RC and RRC values upon failure to enter secure mode
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 1 replyIn review
- v43 patches 5 repliesSuperseded
- v33 patches 1 replySuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 3 patches | 5 replies | Superseded | |
| v1 | 3 patches | 3 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | target/s390x: Introduce constant when checking if PV header couldn't be decryptedtarget/ | +2 | 0 replies | |
| 2/3 | target/s390x: Introduce function when exiting PVtarget/ | +6 | 0 replies | |
| 3/3 | target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure modehw/ hw/ hw/ +2 more | +73 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Steffen Eiden | Janosch Frank |
|---|---|---|
| 1/3 | R-b | R-b |
| 2/3 | R-b | R-b |
| 3/3 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/3] DIAG 308: extend subcode 10 to return UVC cmd id, RC and RRC values upon failure to enter secure mode
DIAG 308 (subcode 10 - performing secure execution unpack) response code when the configuration is unable to enter secure mode has limited usability as it is a fixed value (0xa02) for variety of different reasons. The aim is to extend this DIAG to return UVC command ID, RC and RRC values in addition to the diag response code. This feature can be used by the stage3a bootloader (s390-tools/rust/pvimg/boot) to read these new values from the corresponding register and print an appropriate error message to help pin point the cause.
The response code, UVC RC, RRC, and command ID are returned in bit positions 48-63, 32-47, 16-31, and 0-15 of register R1 + 1 if the function does not complete successfully (Previously, only the response code was returned in bits 48-63).
These patches contains updates based on feedback from Janosch Frank and Thomas Huth from message-IDs <[email protected]> and <[email protected]>
Gautam Gala (3):
target/s390x: Introduce constant when checking if PV header couldn't
be decrypted
target/s390x: Introduce function when exiting PV target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308
Subcode 10 fails to enter secure mode
hw/s390x/ipl.c | 11 ++++--- hw/s390x/ipl.h | 6 ++-- hw/s390x/s390-virtio-ccw.c | 14 ++++---- target/s390x/kvm/pv.c | 66 +++++++++++++++++++++++++------------- target/s390x/kvm/pv.h | 26 +++++++++++---- 5 files changed, 80 insertions(+), 43 deletions(-)
Signature · 1 line
2.49.0