[PATCH v5 3/3] target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure mode

2025-04-23 Thread Gautam Gala
-by: Gautam Gala --- hw/s390x/ipl.c | 11 hw/s390x/ipl.h | 6 +++-- hw/s390x/s390-virtio-ccw.c | 14 ++- target/s390x/kvm/pv.c | 51 +++--- target/s390x/kvm/pv.h | 26 +-- 5 files changed, 73

[PATCH v5 2/3] target/s390x: Introduce function when exiting PV

2025-04-23 Thread Gautam Gala
Replace an existing macro (s390_pv_cmd_exit) that looks like a function with an actual function. The function will be used when exiting PV instead of the macro. Reviewed-by: Steffen Eiden Reviewed-by: Janosch Frank Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.c | 14 ++ 1

[PATCH v5 1/3] target/s390x: Introduce constant when checking if PV header couldn't be decrypted

2025-04-23 Thread Gautam Gala
Introduce a named constant when checking the Set Secure Configuration parameters UV call return code for the case where no valid host key was found and therefore the PV header couldn't be decrypted (0x108). Reviewed-by: Steffen Eiden Reviewed-by: Janosch Frank Signed-off-by: Gautam

[PATCH v5 0/3] DIAG 308: extend subcode 10 to return UVC cmd id, RC and RRC values upon failure to enter secure mode

2025-04-23 Thread Gautam Gala
fbd-90d4-b5d1cdd8c...@linux.ibm.com> and <5a526ecf-d62d-46c8-9881-fdec38169...@redhat.com> 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 a

[PATCH v4 0/3] DIAG 308: extend subcode 10 to return UVC cmd id, RC and RRC values upon failure to enter secure mode

2025-04-17 Thread Gautam Gala
a7c...@linux.ibm.com> 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/

[PATCH v4 3/3] target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure mode

2025-04-17 Thread Gautam Gala
Extend DIAG308 subcode 10 to return the UVC RC, RRC and command code in bit positions 32-47, 16-31, and 0-15 of register R1 + 1 if the function does not complete successfully (in addition to the previously returned diag response code in bit position 47-63). Signed-off-by: Gautam Gala --- hw

[PATCH v4 1/3] target/s390x: Introduce constant when checking if PV header couldn't be decrypted

2025-04-17 Thread Gautam Gala
Introduce a named constant when checking the Set Secure Configuration parameters UV call return code for the case where no valid host key was found and therefore the PV header couldn't be decrypted (0x108). Reviewed-by: Steffen Eiden Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.

[PATCH v4 2/3] target/s390x: Introduce function when exiting PV

2025-04-17 Thread Gautam Gala
Replace an existing macro (s390_pv_cmd_exit) that looks like a function with an actual function. The function will be used when exiting PV instead of the macro. Reviewed-by: Steffen Eiden Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.c | 14 ++ 1 file changed, 6 insertions

[PATCH v3 1/3] target/s390x: Introduce constant when checking if PV header couldn't be decrypted

2025-04-17 Thread Gautam Gala
Introduce a named constant when checking the Set Secure Configuration parameters UV call return code for the case where no valid host key was found and therefore the PV header couldn't be decrypted (0x108). Reviewed-by: Steffen Eiden Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.

[PATCH v3 3/3] target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure mode

2025-04-17 Thread Gautam Gala
Extend DIAG308 subcode 10 to return the UVC RC, RRC and command code in bit positions 32-47, 16-31, and 0-15 of register R1 + 1 if the function does not complete successfully (in addition to the previously returned diag response code in bit position 47-63). Signed-off-by: Gautam Gala --- hw

[PATCH v3 0/3] DIAG 308: extend subcode 10 to return UVC cmd id, RC and RRC values upon failure to enter secure mode

2025-04-17 Thread Gautam Gala
62c...@redhat.com>. 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/

[PATCH v3 2/3] target/s390x: Introduce function when exiting PV

2025-04-17 Thread Gautam Gala
Replace an existing macro (s390_pv_cmd_exit) that looks like a function with an actual function. The function will be used when exiting PV instead of the macro. Reviewed-by: Steffen Eiden Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.c | 14 ++ 1 file changed, 6 insertions

Re: [PATCH v2 2/3] target/s390x: introduce function when exiting PV

2025-04-15 Thread Gautam Gala
025 17.48, Gautam Gala wrote: > > introduce a static function when exiting PV. The function replaces an > > existing macro (s390_pv_cmd_exit). > > You describe here what you're doing, but not why ... so may I ask: Why is > this change necessary? > > Thomas &

[PATCH v2 1/3] target/s390x: Introduce constant when checking if PV header couldn't be decrypted

2025-04-14 Thread Gautam Gala
Introduce a named constant when checking the Set Secure Configuration parameters UV call return code for the case where no valid host key was found and therefore the PV header couldn't be decrypted (0x108). Reviewed-by: Steffen Eiden Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.

[PATCH v2 2/3] target/s390x: introduce function when exiting PV

2025-04-14 Thread Gautam Gala
introduce a static function when exiting PV. The function replaces an existing macro (s390_pv_cmd_exit). Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/target/s390x/kvm/pv.c b/target/s390x/kvm/pv.c index

[PATCH v2 3/3] target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure mode

2025-04-14 Thread Gautam Gala
Extend DIAG308 subcode 10 to return the UVC RC, RRC and command code in bit positions 32-47, 16-31, and 0-15 of register R1 + 1 if the function does not complete successfully (in addition to the previously returned diag response code in bit position 47-63). Signed-off-by: Gautam Gala --- hw

[PATCH v2 0/3] DIAG 308: extend subcode 10 to return UVC cmd id, RC and RRC values upon failure to enter secure mode

2025-04-14 Thread Gautam Gala
sei...@linux.ibm.com> and <20250414140340.61624-e-sei...@linux.ibm.com> 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

[PATCH v1 1/3] target/s390x: Introduce constant when checking if PV header couldn't be decrypted

2025-04-11 Thread Gautam Gala
Introduce a named constant when checking the Set Secure Configuration parameters UV call return code for the case where no valid host key was found and therefore the PV header couldn't be decrypted (0x108). Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.c | 3 ++- 1 file chang

[PATCH v1 2/3] target/s390x: introduce function when exiting PV

2025-04-11 Thread Gautam Gala
introduce a static function when exiting PV. The function replaces an existing macro (s390_pv_cmd_exit). Signed-off-by: Gautam Gala --- target/s390x/kvm/pv.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/target/s390x/kvm/pv.c b/target/s390x/kvm/pv.c index

[PATCH v1 0/3] target/s390x - DIAG 308 extend subcode 10 to return UVC cmd id, RC and RRC values upon failure to enter secure mode

2025-04-11 Thread Gautam Gala
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). Gautam Gala (3): target/s390x: Introduce constant when checking if PV header couldn't be decrypted target/

[PATCH v1 3/3] target/s390x: Return UVC cmd code, RC and RRC value when DIAG 308 Subcode 10 fails to enter secure mode

2025-04-11 Thread Gautam Gala
Extend DIAG308 subcode 10 to return the UVC RC, RRC and command code in bit positions 32-47, 16-31, and 0-15 of register R1 + 1 if the function does not complete successfully (in addition to the previously returned diag response code in bit position 47-63). Signed-off-by: Gautam Gala --- hw