History log of /kvm-unit-tests/lib/s390x/uv.c (Results 1 – 16 of 16)
Revision Date Author Comments
# 9cab5824 24-Apr-2024 Thomas Huth <thuth@redhat.com>

Merge branch 'pr-2024-04-22' into 'master'

s390x: Improvement of CMM test, lot of small bugfixes and two refactorings

See merge request kvm-unit-tests/kvm-unit-tests!58


# f08ec4e5 18-Apr-2024 Claudio Imbrenda <imbrenda@linux.ibm.com>

lib: s390: fix guest length in uv_create_guest()

The current code creates secure guests with significantly more memory
than expected, but since none of that memory is ever touched,
everything still

lib: s390: fix guest length in uv_create_guest()

The current code creates secure guests with significantly more memory
than expected, but since none of that memory is ever touched,
everything still works.

Fix the issue by specifying the actual guest length.

The MSL does not contain the length of the guest, but the address of
the last 1M block of guest memory. In order to get the length, MSO
needs to be subtracted, and 1M needs to be added.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
Link: https://lore.kernel.org/r/20240418110140.62406-1-imbrenda@linux.ibm.com
Signed-off-by: Nico Boehr <nrb@linux.ibm.com>

show more ...


# 90cacd85 11-Jul-2023 Thomas Huth <thuth@redhat.com>

Merge branch 's390x-2023-07' into 'master'

s390x: topology tests, SCLP fixes, UV host test improvements, PV test improvements and validity/IPL test and some small maintanence fixes

See merge reques

Merge branch 's390x-2023-07' into 'master'

s390x: topology tests, SCLP fixes, UV host test improvements, PV test improvements and validity/IPL test and some small maintanence fixes

See merge request kvm-unit-tests/kvm-unit-tests!45

show more ...


# ec6683ad 19-Jun-2023 Janosch Frank <frankja@linux.ibm.com>

lib: s390x: uv: Add pv host requirement check function

When running PV guests some of the UV memory needs to be allocated
with > 31 bit addresses which means tests with PV guests will always
need a

lib: s390x: uv: Add pv host requirement check function

When running PV guests some of the UV memory needs to be allocated
with > 31 bit addresses which means tests with PV guests will always
need a lot more memory than other tests.
Additionally facilities nr 158 and sclp.sief2 need to be available.

Let's add a function that checks for these requirements and prints a
helpful skip message.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
Link: https://lore.kernel.org/r/20230619083329.22680-6-frankja@linux.ibm.com
[ nrb: replace 1024*1024 with SZ_1M as requested by author ]
Signed-off-by: Nico Boehr <nrb@linux.ibm.com>

show more ...


# 5bf99cb3 25-Oct-2022 Paolo Bonzini <bonzini@gnu.org>

Merge branch 's390x-next-2022-10' into 'master'

* library fixes to allow multi-cpu PV guests

* additional tests and fixes for uv-host

* timing tests and library improvements

* misc fixes


# d558b81c 21-Oct-2022 Janosch Frank <frankja@linux.ibm.com>

lib: s390x: Enable reusability of VMs that were in PV mode

Convert the sblk to non-PV when the PV guest is destroyed.

Early return in uv_init() instead of running into the assert. This is
necessary

lib: s390x: Enable reusability of VMs that were in PV mode

Convert the sblk to non-PV when the PV guest is destroyed.

Early return in uv_init() instead of running into the assert. This is
necessary since snippet_pv_init() will always call uv_init().

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <20221021063902.10878-6-frankja@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

show more ...


# 9e3cff66 21-Oct-2022 Janosch Frank <frankja@linux.ibm.com>

lib: s390x: Use a new asce for each PV guest

Every PV guest needs its own ASCE so let's copy the topmost table
designated by CR1 to create a new ASCE for the PV guest. Before and
after SIE we now ne

lib: s390x: Use a new asce for each PV guest

Every PV guest needs its own ASCE so let's copy the topmost table
designated by CR1 to create a new ASCE for the PV guest. Before and
after SIE we now need to switch ASCEs to and from the PV guest / test
ASCE. The SIE assembly function does that automatically.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <20221021063902.10878-5-frankja@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

show more ...


# c315f52b 12-May-2022 Paolo Bonzini <bonzini@gnu.org>

Merge branch 's390x-next-2022-05' into 'master'

storage keys, attestation, migration tests

See merge request kvm-unit-tests/kvm-unit-tests!30


# 26184212 05-May-2022 Steffen Eiden <seiden@linux.ibm.com>

s390x: lib: Add QUI getter

Some tests need the information provided by the QUI UVC and lib/s390x/uv.c
already has cached the qui result. Let's add a function to avoid
unnecessary QUI UVCs.

Signed-o

s390x: lib: Add QUI getter

Some tests need the information provided by the QUI UVC and lib/s390x/uv.c
already has cached the qui result. Let's add a function to avoid
unnecessary QUI UVCs.

Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

show more ...


# 3df30161 20-Jan-2022 Thomas Huth <thuth@redhat.com>

Merge branch 's390x-next-20220117' from imbrenda into 'master'

s390x: 2022-01-17 update

See merge request https://gitlab.com/kvm-unit-tests/kvm-unit-tests/-/merge_requests/22


# f4f97af0 04-Sep-2020 Janosch Frank <frankja@linux.ibm.com>

s390x: lib: Extend UV library with PV guest management

Let's extend the UV lib with guest 1 code to be able to manage
protected VMs in the future.

Signed-off-by: Janosch Frank <frankja@linux.ibm.co

s390x: lib: Extend UV library with PV guest management

Let's extend the UV lib with guest 1 code to be able to manage
protected VMs in the future.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

show more ...


# 0c259cf3 16-Aug-2021 Paolo Bonzini <bonzini@gnu.org>

Merge branch 's390x-pull-2021-16-08' into 'master'

s390x-pull-2021-16-08

See merge request kvm-unit-tests/kvm-unit-tests!15


# 78168306 11-Aug-2021 Janosch Frank <frankja@linux.ibm.com>

lib: s390x: uv: Add rc 0x100 query error handling

Let's not get bitten by an extension of the query struct and handle
the rc 0x100 error properly which does indicate that the UV has more
data for us

lib: s390x: uv: Add rc 0x100 query error handling

Let's not get bitten by an extension of the query struct and handle
the rc 0x100 error properly which does indicate that the UV has more
data for us.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

show more ...


# aa8794b1 28-Jul-2021 Janosch Frank <frankja@linux.ibm.com>

s390x: Add SPDX and header comments for s390x/* and lib/s390x/*

Seems like I missed adding them.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Rev

s390x: Add SPDX and header comments for s390x/* and lib/s390x/*

Seems like I missed adding them.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

show more ...


# f175fee7 26-May-2021 Paolo Bonzini <pbonzini@redhat.com>

Merge branch 's390x-pull-2021-26-05' of https://gitlab.com/frankja/kvm-unit-tests into HEAD


# 07ac63dc 04-Sep-2020 Janosch Frank <frankja@linux.ibm.com>

s390x: uv: Add UV lib

Lets add a UV library to make checking the UV feature bit easier.
In the future this library file can take care of handling UV
initialization and UV guest creation.

Signed-off

s390x: uv: Add UV lib

Lets add a UV library to make checking the UV feature bit easier.
In the future this library file can take care of handling UV
initialization and UV guest creation.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>

show more ...