From: Claudio Imbrenda <imbrenda@linux.ibm.com>
To: kvm@vger.kernel.org
Cc: david@redhat.com, thuth@redhat.com, frankja@linux.ibm.com,
cohuck@redhat.com, pmorel@linux.ibm.com, borntraeger@de.ibm.com
Subject: [kvm-unit-tests PATCH v2 0/2] s390x: mvpg test
Date: Tue, 23 Feb 2021 15:24:27 +0100 [thread overview]
Message-ID: <20210223142429.256420-1-imbrenda@linux.ibm.com> (raw)
A simple unit test for the MVPG instruction.
The timeout is set to 10 seconds because the test should complete in a
fraction of a second even on busy machines. If the test is run in VSIE
and the host of the host is not handling MVPG properly, the test will
probably hang.
Testing MVPG behaviour in VSIE is the main motivation for this test.
Anything related to storage keys is not tested.
v1->v2
* droppped patch 2 which introduced is_pgm();
* patch 1: replace a hardcoded value with the new macro SVC_LEAVE_PSTATE
* patch 2: clear_pgm_int() returns the old value, use that instad of is_pgm()
Claudio Imbrenda (2):
s390x: introduce leave_pstate to leave userspace
s390x: mvpg: simple test
s390x/Makefile | 1 +
lib/s390x/asm/arch_def.h | 7 ++
lib/s390x/interrupt.c | 12 +-
s390x/mvpg.c | 266 +++++++++++++++++++++++++++++++++++++++
s390x/unittests.cfg | 4 +
5 files changed, 288 insertions(+), 2 deletions(-)
create mode 100644 s390x/mvpg.c
--
2.26.2
next reply other threads:[~2021-02-23 14:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 14:24 Claudio Imbrenda [this message]
2021-02-23 14:24 ` [kvm-unit-tests PATCH v2 1/2] s390x: introduce leave_pstate to leave userspace Claudio Imbrenda
2021-02-23 16:19 ` Janosch Frank
2021-02-23 14:24 ` [kvm-unit-tests PATCH v2 2/2] s390x: mvpg: simple test Claudio Imbrenda
2021-02-26 9:24 ` Janosch Frank
2021-02-26 10:14 ` Claudio Imbrenda
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=20210223142429.256420-1-imbrenda@linux.ibm.com \
--to=imbrenda@linux.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=frankja@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=pmorel@linux.ibm.com \
--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