[kvm-unit-tests PATCH v4 0/5] s390x: Attestation tests

Steffen Eiden
2022-04-21T09:45:41Z

This series adds some test in s390x/uv-guest.c verifying error paths of the
Request Attestation Measurement UVC.
Also adds a test in s390x/uv-host.c to verify that the
Request Attestation Measurement UVC cannot be called in guest1.

Additionally, adds a shared bit test and removes duplicated tests.

v3->v4:
* renamed PATCH 1
* moved attestation guest tests into own file
* rebased onto current master

v2->v3:
* added test for share bits as new PATCH 4/5
* added r-b from Claudio in PATCH 1/4
* replaced all u* with uint*_t
* incorporated misc feedback from Claudio

v1->v2:
* renamed 'uv_get_info(void)' to 'uv_get_query_data(void)'
* renamed various fields in 'struct uv_arcb_v1'
* added a test for invalid additional size
* added r-b from Janosch in PATCH 1/4
* added r-b from Janosch in PATCH 3/4

Steffen Eiden (5):
s390x: uv-host: Add invalid command attestation check
s390x: lib: Add QUI getter
s390x: uv-guest: remove duplicated checks
s390x: uv-guest: add share bit test
s390x: uv-guest: Add attestation tests

lib/s390x/asm/uv.h | 28 +++++-
lib/s390x/uv.c | 8 ++
lib/s390x/uv.h | 1 +
s390x/Makefile | 1 +
s390x/pv-attest.c | 225 +++++++++++++++++++++++++++++++++++++++++++++
s390x/uv-guest.c | 49 ++++++----
s390x/uv-host.c | 1 +
7 files changed, 293 insertions(+), 20 deletions(-)
create mode 100644 s390x/pv-attest.c

--
2.30.2