From: Pierre Morel <pmorel@linux.ibm.com>
To: kvm@vger.kernel.org
Cc: frankja@linux.ibm.com, david@redhat.com, thuth@redhat.com,
cohuck@redhat.com, imbrenda@linux.ibm.com
Subject: [kvm-unit-tests PATCH v4 0/6] CSS Mesurement Block
Date: Mon, 1 Mar 2021 12:46:59 +0100 [thread overview]
Message-ID: <1614599225-17734-1-git-send-email-pmorel@linux.ibm.com> (raw)
We tests the update of the Mesurement Block (MB) format 0
and format 1 using a serie of senseid requests.
*Warning*: One of the tests for format-1 will unexpectedly fail for QEMU elf
unless the QEMU patch "css: SCHIB measurement block origin must be aligned"
is applied.
With Protected Virtualization, the PGM is correctly recognized.
The MB format 1 is only provided if the Extended mesurement Block
feature is available.
This feature is exposed by the CSS characteristics general features
stored by the Store Channel Subsystem Characteristics CHSC command,
consequently, we implement the CHSC instruction call and the SCSC CHSC
command.
In order to ease the writing of new tests using:
- interrupt
- enablement of a subchannel
- multiple I/O on a subchannel
We do the following simplifications:
- we create a CSS initialization routine
- we register the I/O interrupt handler on CSS initialization
- we do not enable or disable a subchannel in the senseid test,
assuming this test is done after the enable test, this allows
to create traffic using the SSCH used by senseid.
- we add a css_enabled() function to test if a subchannel is enabled.
@Connie, I restructured the patches but I did not modify the
functionalities, so I kept your R-B, I hope you are OK with this.
Regards,
Pierre
Pierre Morel (6):
s390x: css: Store CSS Characteristics
s390x: css: simplifications of the tests
s390x: css: extending the subchannel modifying functions
s390x: css: implementing Set CHannel Monitor
s390x: css: testing measurement block format 0
s390x: css: testing measurement block format 1
lib/s390x/css.h | 116 +++++++++++++++++++++-
lib/s390x/css_lib.c | 232 +++++++++++++++++++++++++++++++++++++++++---
s390x/css.c | 228 +++++++++++++++++++++++++++++++++++++++----
3 files changed, 542 insertions(+), 34 deletions(-)
--
2.17.1
changelog:
from v3:
- stay coherent and use uintX_t types in css.h
(Janosch)
- reworking test versus library to leave the reports
mostly inside the tests
(Janosh)
- Restructured some tests to use booleans instead of int
this simplifies testing.
(inspired by comments from Janosch)
- rewordings and orthograph (Measurement !!!)
(Connie)
- stop measurement at the channel too before freeing the
MB memory.
(Connie)
- split out the subchannel-modifying functions into a
separate patch
(Connie)
- move msch_with_wrong_fmt1_mbo() from the library
into the tests
(Janosch)
- Suppress redundancy in the prefixes of format0/1 tests
(Janosch)
from v2:
- stop measurement before freeing memory
(Connie)
- added a css_disable_mb()
(Connie)
- several rewriting of comments and commits
(Connie)
- modified eroneous test for MB index for fmt0
(Pierre)
- modified eroneous test for unaligned MBO for fmt1
(Pierre)
- several small coding style issues corrected
(Pierre)
from v1:
- check the return code of CHSC
(Connie)
- reporting in css_init
(Connie)
- added braces when a loop contains several statement
(Thomas)
- changed retval to success in boolean function
(Thomas)
- suppress goto retries
(thomas)
- rewording and use correct return types in css_enabled
(Janosch)
next reply other threads:[~2021-03-01 11:48 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 11:46 Pierre Morel [this message]
2021-03-01 11:47 ` [kvm-unit-tests PATCH v4 1/6] s390x: css: Store CSS Characteristics Pierre Morel
2021-03-01 14:45 ` Janosch Frank
2021-03-08 14:01 ` Pierre Morel
2021-03-08 14:39 ` Janosch Frank
2021-03-01 11:47 ` [kvm-unit-tests PATCH v4 2/6] s390x: css: simplifications of the tests Pierre Morel
2021-03-01 15:00 ` Janosch Frank
2021-03-08 14:13 ` Pierre Morel
2021-03-08 14:36 ` Janosch Frank
2021-03-08 14:41 ` Pierre Morel
2021-03-08 14:41 ` Thomas Huth
2021-03-08 15:14 ` Pierre Morel
2021-03-09 9:30 ` Pierre Morel
2021-03-01 11:47 ` [kvm-unit-tests PATCH v4 3/6] s390x: css: extending the subchannel modifying functions Pierre Morel
2021-03-01 11:47 ` [kvm-unit-tests PATCH v4 4/6] s390x: css: implementing Set CHannel Monitor Pierre Morel
2021-03-01 15:32 ` Janosch Frank
2021-03-08 14:24 ` Pierre Morel
2021-03-01 11:47 ` [kvm-unit-tests PATCH v4 5/6] s390x: css: testing measurement block format 0 Pierre Morel
2021-03-01 15:54 ` Janosch Frank
2021-03-04 17:05 ` Cornelia Huck
2021-03-08 14:55 ` Pierre Morel
2021-03-01 11:47 ` [kvm-unit-tests PATCH v4 6/6] s390x: css: testing measurement block format 1 Pierre Morel
2021-03-04 17:06 ` [kvm-unit-tests PATCH v4 0/6] CSS Mesurement Block Cornelia Huck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1614599225-17734-1-git-send-email-pmorel@linux.ibm.com \
--to=pmorel@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=frankja@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox