Re: [PATCH v2 4/6] selftests: kvm: s390: Add ucontrol gis routing test

2024-12-19 Thread Hariharan Mari
-by: Hariharan Mari --- .../selftests/kvm/s390x/ucontrol_test.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x/ucontrol_test.c b/tools/testing/selftests/kvm/s390x/ucontrol_test.c index b003abda8495..8f306395696e 100644 --- a/tools

Re: [PATCH v2 3/6] kvm: s390: Reject KVM_SET_GSI_ROUTING on ucontrol VMs

2024-12-19 Thread Hariharan Mari
ned-off-by: Christoph Schlameuss Reviewed-by: Hariharan Mari --- Documentation/virt/kvm/api.rst | 3 +++ arch/s390/kvm/interrupt.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index 454c2aaa155e..f15b61317aad 10

Re: [PATCH v2 2/6] selftests: kvm: s390: Add ucontrol flic attr selftests

2024-12-19 Thread Hariharan Mari
this patch series. Signed-off-by: Christoph Schlameuss Reviewed-by: Hariharan Mari --- .../selftests/kvm/s390x/ucontrol_test.c | 148 ++ 1 file changed, 148 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x/ucontrol_test.c b/tools/testing/selftests/kvm/s390x

Re: [PATCH v2 1/6] kvm: s390: Reject setting flic pfault attributes on ucontrol VMs

2024-12-19 Thread Hariharan Mari
y: Claudio Imbrenda Signed-off-by: Christoph Schlameuss Reviewed-by: Hariharan Mari --- Documentation/virt/kvm/devices/s390_flic.rst | 4 arch/s390/kvm/interrupt.c| 4 2 files changed, 8 insertions(+) diff --git a/Documentation/virt/kvm/devices/s390_flic.rst b/Document

Re: [PATCH v2 6/6] selftests: kvm: s390: Add has device attr check to uc_attr_mem_limit selftest

2024-12-18 Thread Hariharan Mari
On 2024-12-16 10:21, Christoph Schlameuss wrote: Fixup the uc_attr_mem_limit test case to also cover the KVM_HAS_DEVICE_ATTR ioctl. Signed-off-by: Christoph Schlameuss Tested-by: Hariharan Mari --- tools/testing/selftests/kvm/s390x/ucontrol_test.c | 5 - 1 file changed, 4 insertions

Re: [PATCH v2 4/6] selftests: kvm: s390: Add ucontrol gis routing test

2024-12-18 Thread Hariharan Mari
: Hariharan Mari --- .../selftests/kvm/s390x/ucontrol_test.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x/ucontrol_test.c b/tools/testing/selftests/kvm/s390x/ucontrol_test.c index b003abda8495..8f306395696e 100644 --- a/tools

Re: [PATCH v2 5/6] selftests: kvm: s390: Streamline uc_skey test to issue iske after sske

2024-12-18 Thread Hariharan Mari
removed this test case can work in all situations. The function of the iske instruction is still validated by the remaining code. Fixes: 7d900f8ac191 ("selftests: kvm: s390: Add uc_skey VM test case") Signed-off-by: Christoph Schlameuss Tested-by: Hariharan Mari --- .../selftests

Re: [PATCH v2 2/6] selftests: kvm: s390: Add ucontrol flic attr selftests

2024-12-18 Thread Hariharan Mari
this patch series. Signed-off-by: Christoph Schlameuss Tested-by: Hariharan Mari --- .../selftests/kvm/s390x/ucontrol_test.c | 148 ++ 1 file changed, 148 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x/ucontrol_test.c b/tools/testing/selftests/kvm/s390x

Re: [PATCH v2 1/6] kvm: s390: Reject setting flic pfault attributes on ucontrol VMs

2024-12-18 Thread Hariharan Mari
y: Claudio Imbrenda Signed-off-by: Christoph Schlameuss Tested-by: Hariharan Mari --- Documentation/virt/kvm/devices/s390_flic.rst | 4 arch/s390/kvm/interrupt.c| 4 2 files changed, 8 insertions(+) diff --git a/Documentation/virt/kvm/devices/s390_flic.rst b/Document

Re: [PATCH v2 3/6] kvm: s390: Reject KVM_SET_GSI_ROUTING on ucontrol VMs

2024-12-18 Thread Hariharan Mari
ned-off-by: Christoph Schlameuss Tested-by: Hariharan Mari --- Documentation/virt/kvm/api.rst | 3 +++ arch/s390/kvm/interrupt.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst index 454c2aaa155e..f15b61317aad 10

[PATCH v3 5/5] KVM: s390: selftests: Add regression tests for PLO subfunctions

2024-08-23 Thread Hariharan Mari
follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x/cpumodel_subfuncs_test.c| 32 +++ 1 file changed, 32 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x

[PATCH v3 4/5] KVM: s390: selftests: Add regression tests for KMAC, KMC, KM, KIMD and KLMD crypto subfunctions

2024-08-23 Thread Hariharan Mari
. The test procedure follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank Reviewed-by: Christoph Schlameuss --- .../kvm/s390x/cpumodel_subfuncs_test.c| 61 +++ 1 file changed, 61 insertions(+) diff --git a

[PATCH v3 3/5] KVM: s390: selftests: Add regression tests for KMCTR, KMF, KMO and PCC crypto subfunctions

2024-08-23 Thread Hariharan Mari
procedure follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank Reviewed-by: Christoph Schlameuss --- .../kvm/s390x/cpumodel_subfuncs_test.c| 49 +++ 1 file changed, 49 insertions(+) diff --git a/tools/testing

[PATCH v3 2/5] KVM: s390: selftests: Add regression tests for PRNO, KDSA and KMA crypto subfunctions

2024-08-23 Thread Hariharan Mari
pattern: 1. Obtain KVM_S390_VM_CPU_MACHINE_SUBFUNC attribute for the VM. 2. Execute PRNO, KDSA and KMA instructions. 3. Compare KVM-reported results with direct instruction execution results. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank Reviewed-by: Christoph

[PATCH v3 1/5] KVM: s390: selftests: Add regression tests for SORTL and DFLTCC CPU subfunctions

2024-08-23 Thread Hariharan Mari
subfunctions. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- tools/testing/selftests/kvm/Makefile | 2 + .../selftests/kvm/include/s390x/facility.h| 50 + .../selftests/kvm/lib/s390x/facility.c| 14 +++ .../kvm/s390x

[PATCH v3 0/5] KVM: s390: selftests: Add regression tests for CPU subfunctions

2024-08-23 Thread Hariharan Mari
facility.c file in selftests/kvm/lib/s390x/ * Fixed the line length * Fixed single line comments and multiline comments * Renamed the PLO macro * Removed the unnecessary type cast where Implicit type promotion applies --- Hariharan Mari (5): KVM: s390: selftests: Add regression tests for SORTL

[PATCH v2 5/5] KVM: s390: selftests: Add regression tests for PLO subfunctions

2024-08-19 Thread Hariharan Mari
follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x/cpumodel_subfuncs_test.c| 34 +++ 1 file changed, 34 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x

[PATCH v2 4/5] KVM: s390: selftests: Add regression tests for KMAC, KMC, KM, KIMD and KLMD crypto subfunctions

2024-08-19 Thread Hariharan Mari
. The test procedure follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x/cpumodel_subfuncs_test.c| 78 +++ 1 file changed, 78 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x

[PATCH v2 3/5] KVM: s390: selftests: Add regression tests for KMCTR, KMF, KMO and PCC crypto subfunctions

2024-08-19 Thread Hariharan Mari
procedure follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x/cpumodel_subfuncs_test.c| 65 +++ 1 file changed, 65 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x

[PATCH v2 2/5] KVM: s390: selftests: Add regression tests for PRNO, KDSA and KMA crypto subfunctions

2024-08-19 Thread Hariharan Mari
pattern: 1. Obtain KVM_S390_VM_CPU_MACHINE_SUBFUNC attribute for the VM. 2. Execute PRNO, KDSA and KMA instructions. 3. Compare KVM-reported results with direct instruction execution results. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x

[PATCH v2 1/5] KVM: s390: selftests: Add regression tests for SORTL and DFLTCC CPU subfunctions

2024-08-19 Thread Hariharan Mari
subfunctions. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/include/s390x/facility.h| 50 .../kvm/s390x/cpumodel_subfuncs_test.c| 115 ++ 3 files

[PATCH v2 0/5] KVM: s390: selftests: Add regression tests for CPU subfunctions

2024-08-19 Thread Hariharan Mari
direct instruction execution results. Testing has been performed on s390x hardware with KVM support. All tests pass successfully, verifying the correct implementation of these subfunctions in KVM. --- v2: * Fix facility_bit type from bool to int --- Hariharan Mari (5): KVM: s390: selftests

[PATCH v1 5/5] KVM: s390: selftests: Add regression tests for PLO subfunctions

2024-08-19 Thread Hariharan Mari
follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x/cpumodel_subfuncs_test.c| 36 ++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/s390x

[PATCH v1 4/5] KVM: s390: selftests: Add regression tests for KMAC, KMC, KM, KIMD and KLMD crypto subfunctions

2024-08-19 Thread Hariharan Mari
. The test procedure follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x/cpumodel_subfuncs_test.c| 78 +++ 1 file changed, 78 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x

[PATCH v1 3/5] KVM: s390: selftests: Add regression tests for KMCTR, KMF, KMO and PCC crypto subfunctions

2024-08-19 Thread Hariharan Mari
procedure follows the established pattern. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x/cpumodel_subfuncs_test.c| 65 +++ 1 file changed, 65 insertions(+) diff --git a/tools/testing/selftests/kvm/s390x

[PATCH v1 2/5] KVM: s390: selftests: Add regression tests for PRNO, KDSA and KMA crypto subfunctions

2024-08-19 Thread Hariharan Mari
pattern: 1. Obtain KVM_S390_VM_CPU_MACHINE_SUBFUNC attribute for the VM. 2. Execute PRNO, KDSA and KMA instructions. 3. Compare KVM-reported results with direct instruction execution results. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- .../kvm/s390x

[PATCH v1 1/5] KVM: s390: selftests: Add regression tests for SORTL and DFLTCC CPU subfunctions

2024-08-19 Thread Hariharan Mari
subfunctions. Suggested-by: Janosch Frank Signed-off-by: Hariharan Mari Reviewed-by: Janosch Frank --- tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/include/s390x/facility.h| 50 .../kvm/s390x/cpumodel_subfuncs_test.c| 115 ++ 3 files

[PATCH v1 0/5] KVM: s390: selftests: Add regression tests for CPU subfunctions

2024-08-19 Thread Hariharan Mari
with direct instruction execution results. Testing has been performed on s390x hardware with KVM support. All tests pass successfully, verifying the correct implementation of these subfunctions in KVM. Hariharan Mari (5): KVM: s390: selftests: Add regression tests for SORTL and DFLTCC CPU