Re: [PATCH v2 18/25] s390x: Guest support for Secure-IPL Code Loading Attributes Facility (SCLAF)

2025-05-26 Thread Hendrik Brueckner
On Thu, May 08, 2025 at 06:50:34PM -0400, Zhuoying Cai wrote: > The secure-IPL-code-loading-attributes facility (SCLAF) > provides additional security during IPL. > > Availability of SCLAF is determined by byte 136 bit 3 of the > SCLP Read Info block. > > Signed-off-by: Zhuoying Cai > --- > tar

Re: [PATCH v4 1/4] hw/s390x: add SCLP event type CPI

2025-05-23 Thread Hendrik Brueckner
On Tue, May 06, 2025 at 02:16:18PM +0200, Shalini Chellathurai Saroja wrote: > On 2025-05-06 09:48, Thomas Huth wrote: > > On 06/05/2025 08.48, Nina Schoetterl-Glausch wrote: > > > On Mon, 2025-05-05 at 08:55 +0200, Shalini Chellathurai Saroja wrote: > > > > On 2025-04-28 11:22, Janis Schoetterl-Gl

[RFC PATCH] s390x/cpumodel: add MSA 12 consistency checks

2024-12-10 Thread Hendrik Brueckner
The MSA 12 facility depends on MSA 6 for which only its subfunctions are defined as features. Hence, require all MSA 6 subfunctions as pre-requisite for MSA 12. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_models.c | 12 1 file changed, 12 insertions(+) diff --git a

Re: [RFC PATCH v2 03/15] s390x/cpumodel: add msa12 changes

2024-12-09 Thread Hendrik Brueckner
On Mon, Dec 09, 2024 at 04:45:25PM +0100, Janosch Frank wrote: > On 12/9/24 4:24 PM, Hendrik Brueckner wrote: > > On Mon, Dec 09, 2024 at 03:48:11PM +0100, Janosch Frank wrote: > > > On 12/6/24 1:27 PM, Hendrik Brueckner wrote: > > > > MSA12 changes the KIMD/KLMD ins

Re: [RFC PATCH v2 02/15] s390x/cpumodel: add msa11 subfunctions

2024-12-09 Thread Hendrik Brueckner
On Mon, Dec 09, 2024 at 04:04:19PM +0100, Janosch Frank wrote: > On 12/6/24 1:27 PM, Hendrik Brueckner wrote: > > MSA11 introduces new HMAC subfunctions. > > > > Signed-off-by: Hendrik Brueckner > > Reviewed-by: Christian Borntraeger > > --- > > t

Re: [RFC PATCH v2 03/15] s390x/cpumodel: add msa12 changes

2024-12-09 Thread Hendrik Brueckner
On Mon, Dec 09, 2024 at 03:48:11PM +0100, Janosch Frank wrote: > On 12/6/24 1:27 PM, Hendrik Brueckner wrote: > > MSA12 changes the KIMD/KLMD instruction format for SHA3/SHAKE. > > > > Signed-off-by: Hendrik Brueckner > > Reviewed-by: Christian Borntraeger > &g

[RFC PATCH v2 13/15] s390x/cpumodel: correct PLO feature wording

2024-12-06 Thread Hendrik Brueckner
The PLO functions 0, 4, 8, 12, 16, and 20 use 32-bit registers values. The plo-*gr variants use 64-bit instead and, thus, correct the wording. Signed-off-by: Hendrik Brueckner Reviewed-by: Janosch Frank --- target/s390x/cpu_features_def.h.inc | 12 ++-- 1 file changed, 6 insertions

[RFC PATCH v2 01/15] s390x/cpumodel: add msa10 subfunctions

2024-12-06 Thread Hendrik Brueckner
MSA10 introduces new AES XTS subfunctions. Signed-off-by: Hendrik Brueckner Reviewed-by: Christian Borntraeger --- target/s390x/cpu_features.c | 2 ++ target/s390x/cpu_features_def.h.inc | 6 ++ target/s390x/cpu_models.c | 4 target/s390x/gen-features.c

[RFC PATCH v2 03/15] s390x/cpumodel: add msa12 changes

2024-12-06 Thread Hendrik Brueckner
MSA12 changes the KIMD/KLMD instruction format for SHA3/SHAKE. Signed-off-by: Hendrik Brueckner Reviewed-by: Christian Borntraeger --- target/s390x/cpu_features.c | 1 + target/s390x/cpu_features_def.h.inc | 1 + target/s390x/gen-features.c | 8 3 files changed, 10

[RFC PATCH v2 10/15] s390x/cpumodel: add Vector-Packed-Decimal-Enhancement facility 3

2024-12-06 Thread Hendrik Brueckner
This facility introduces new capabilities for the signed-pack-decimal format. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + target/s390x/cpu_models.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/s390x/cpu_features_def.h.inc b/target

[RFC PATCH v2 06/15] linux-headers: Update to Linux 6.13-rc1

2024-12-06 Thread Hendrik Brueckner
This linux headers update includes required changes for the gen17 CPU model. Signed-off-by: Hendrik Brueckner Suggested-by: Thomas Huth --- include/standard-headers/drm/drm_fourcc.h | 1 + include/standard-headers/linux/ethtool.h | 5 + include/standard-headers/linux/pci_regs.h

[RFC PATCH v2 15/15] s390x/cpumodel: gen17 model

2024-12-06 Thread Hendrik Brueckner
This commit introduces the definition of the gen17a/gen17b CPU model. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_models.c | 2 ++ target/s390x/gen-features.c | 33 + 2 files changed, 35 insertions(+) diff --git a/target/s390x/cpu_models.c b/target

[RFC PATCH v2 09/15] s390x/cpumodel: add Miscellaneous-Instruction-Extensions Facility 4

2024-12-06 Thread Hendrik Brueckner
This facility introduces few new instructions. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/target/s390x/cpu_features_def.h.inc b/target/s390x/cpu_features_def.h.inc index 0b7be0e6e9..8be2e0e46d 100644 --- a/target

[RFC PATCH v2 05/15] s390x/cpumodel: Add ptff Query Time-Stamp Event (QTSE) support

2024-12-06 Thread Hendrik Brueckner
Introduce a new PTFF subfunction to query-stamp events. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features.c | 1 + target/s390x/cpu_features_def.h.inc | 1 + target/s390x/gen-features.c | 9 + 3 files changed, 11 insertions(+) diff --git a/target/s390x

[RFC PATCH v2 04/15] s390x/cpumodel: add msa13 subfunctions

2024-12-06 Thread Hendrik Brueckner
MSA13 introduces query authentication information (QAI) subfunctions. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features.c | 2 ++ target/s390x/cpu_features_def.h.inc | 12 target/s390x/gen-features.c | 26 ++ 3 files changed, 40

[RFC PATCH v2 02/15] s390x/cpumodel: add msa11 subfunctions

2024-12-06 Thread Hendrik Brueckner
MSA11 introduces new HMAC subfunctions. Signed-off-by: Hendrik Brueckner Reviewed-by: Christian Borntraeger --- target/s390x/cpu_features.c | 2 ++ target/s390x/cpu_features_def.h.inc | 10 ++ target/s390x/cpu_models.c | 8 target/s390x/gen-features.c

[RFC PATCH v2 08/15] s390x/cpumodel: add Vector Enhancements facility 3

2024-12-06 Thread Hendrik Brueckner
The Vector Enhancements facility 3 introduces new instructions and extends support for doubleword/quadword elements. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + target/s390x/cpu_models.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/target

[RFC PATCH v2 14/15] s390x/cpumodel: Add PLO-extension facility

2024-12-06 Thread Hendrik Brueckner
The PLO-extension facility introduces numerous locking related subfunctions. Signed-off-by: Hendrik Brueckner Reviewed-by: Janosch Frank --- target/s390x/cpu_features.c | 1 + target/s390x/cpu_features_def.h.inc | 39 + target/s390x/cpu_models.c | 38

[RFC PATCH v2 11/15] s390x/cpumodel: add Ineffective-nonconstrained-transaction facility

2024-12-06 Thread Hendrik Brueckner
This facility indicates reduced support for noncontrained transactional-execution. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + target/s390x/cpu_models.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/s390x/cpu_features_def.h.inc b

[RFC PATCH v2 12/15] s390x/cpumodel: Add Sequential-Instruction-Fetching facility

2024-12-06 Thread Hendrik Brueckner
The sequential instruction fetching facility provides few guarantees, for example, to avoid stop machine calls on enabling/disabling kprobes. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/target/s390x

[RFC PATCH v2 07/15] s390x/cpumodel: add Concurrent-functions facility support

2024-12-06 Thread Hendrik Brueckner
The Concurrent-functions facility introduces the new instruction Perform Functions with Concurrent Results (PFCR) with few subfunctions. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features.c | 2 ++ target/s390x/cpu_features.h | 1 + target/s390x

[RFC PATCH v2 00/15] KVM: s390: CPU model for gen17

2024-12-06 Thread Hendrik Brueckner
a12 and PLO extensions Feedback and review is always welcome. Thanks a lot! Kind regards, Hendrik Hendrik Brueckner (15): s390x/cpumodel: add msa10 subfunctions s390x/cpumodel: add msa11 subfunctions s390x/cpumodel: add msa12 changes s390x/cpumodel: add msa13 subfunctions s390x/cpumo

[RFC PATCH 03/14] s390x/cpumodel: add msa12 changes

2024-11-12 Thread Hendrik Brueckner
MSA12 changes the KIMD/KLMD instruction format for SHA3/SHAKE. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + target/s390x/gen-features.c | 8 2 files changed, 9 insertions(+) diff --git a/target/s390x/cpu_features_def.h.inc b/target/s390x

[RFC PATCH 12/14] s390x/cpumodel: correct PLO feature wording

2024-11-12 Thread Hendrik Brueckner
The PLO functions 0, 4, 8, 12, 16, and 20 use 32-bit registers values. The plo-*gr variants use 64-bit instead and, thus, correct the wording. Signed-off-by: Hendrik Brueckner Reviewed-by: Janosch Frank --- target/s390x/cpu_features_def.h.inc | 12 ++-- 1 file changed, 6 insertions

[RFC PATCH 06/14] s390x/cpumodel: add Concurrent-functions facility support

2024-11-12 Thread Hendrik Brueckner
The Concurrent-functions facility introduces the new instruction Perform Functions with Concurrent Results (PFCR) with few subfunctions. Signed-off-by: Hendrik Brueckner --- linux-headers/asm-s390/kvm.h| 3 ++- target/s390x/cpu_features.c | 2 ++ target/s390x/cpu_features.h

[RFC PATCH 13/14] s390x/cpumodel: Add PLO-extension facility

2024-11-12 Thread Hendrik Brueckner
The PLO-extension facility introduces numerous locking related subfunctions. Signed-off-by: Hendrik Brueckner Reviewed-by: Janosch Frank --- target/s390x/cpu_features_def.h.inc | 39 +++ target/s390x/cpu_models.c | 38 ++ target/s390x

[RFC PATCH 09/14] s390x/cpumodel: add Vector-Packed-Decimal-Enhancement facility 3

2024-11-12 Thread Hendrik Brueckner
This facility introduces new capabilities for the signed-pack-decimal format. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + target/s390x/cpu_models.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/s390x/cpu_features_def.h.inc b/target

[RFC PATCH 01/14] s390x/cpumodel: add msa10 subfunctions

2024-11-12 Thread Hendrik Brueckner
MSA10 introduces new AES XTS subfunctions. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features.c | 2 ++ target/s390x/cpu_features_def.h.inc | 6 ++ target/s390x/cpu_models.c | 4 target/s390x/gen-features.c | 20 4 files

[RFC PATCH 08/14] s390x/cpumodel: add Miscellaneous-Instruction-Extensions Facility 4

2024-11-12 Thread Hendrik Brueckner
This facility introduces few new instructions. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/target/s390x/cpu_features_def.h.inc b/target/s390x/cpu_features_def.h.inc index 0b7be0e6e9..8be2e0e46d 100644 --- a/target

[RFC PATCH 10/14] s390x/cpumodel: add Ineffective-nonconstrained-transaction facility

2024-11-12 Thread Hendrik Brueckner
This facility indicates reduced support for noncontrained transactional-execution. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + target/s390x/cpu_models.c | 1 + 2 files changed, 2 insertions(+) diff --git a/target/s390x/cpu_features_def.h.inc b

[RFC PATCH 05/14] s390x/cpumodel: Add ptff Query Time-Stamp Event (QTSE) support

2024-11-12 Thread Hendrik Brueckner
Introduce a new PTFF subfunction to query-stamp events. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features.c | 1 + target/s390x/cpu_features_def.h.inc | 1 + target/s390x/gen-features.c | 9 + 3 files changed, 11 insertions(+) diff --git a/target/s390x

[RFC PATCH 14/14] s390x/cpumodel: gen17 model

2024-11-12 Thread Hendrik Brueckner
This commit introduces the definition of the gen17a/gen17b CPU model. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_models.c | 2 ++ target/s390x/gen-features.c | 33 + 2 files changed, 35 insertions(+) diff --git a/target/s390x/cpu_models.c b/target

[RFC PATCH 02/14] s390x/cpumodel: add msa11 subfunctions

2024-11-12 Thread Hendrik Brueckner
MSA11 introduces new HMAC subfunctions. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features.c | 2 ++ target/s390x/cpu_features_def.h.inc | 10 ++ target/s390x/cpu_models.c | 8 target/s390x/gen-features.c | 24 4

[RFC PATCH 00/14] KVM: s390: CPU model for gen17

2024-11-12 Thread Hendrik Brueckner
: https://lore.kernel.org/kvm/20241107152319.77816-1-brueck...@linux.ibm.com/T/#me506dc2ca538aee3cfc13620a48bdb686c459ab0 Feedback and review is always welcome. Thanks a lot! Kind regards, Hendrik Hendrik Brueckner (14): s390x/cpumodel: add msa10 subfunctions s390x/cpumodel: add msa11

[RFC PATCH 11/14] s390x/cpumodel: Add Sequential-Instruction-Fetching facility

2024-11-12 Thread Hendrik Brueckner
The sequential instruction fetching facility provides few guarantees, for example, to avoid stop machine calls on enabling/disabling kprobes. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/target/s390x

[RFC PATCH 07/14] s390x/cpumodel: add Vector Enhancements facility 3

2024-11-12 Thread Hendrik Brueckner
The Vector Enhancements facility 3 introduces new instructions and extends support for doubleword/quadword elements. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features_def.h.inc | 1 + target/s390x/cpu_models.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/target

[RFC PATCH 04/14] s390x/cpumodel: add msa13 subfunctions

2024-11-12 Thread Hendrik Brueckner
MSA13 introduces query authentication information (QAI) subfunctions. Signed-off-by: Hendrik Brueckner --- target/s390x/cpu_features.c | 2 ++ target/s390x/cpu_features_def.h.inc | 12 target/s390x/gen-features.c | 26 ++ 3 files changed, 40