From: Marc Hartmayer <mhartmay@linux.ibm.com>
To: Cornelia Huck <cohuck@redhat.com>,
Marc Hartmayer <mhartmay@linux.ibm.com>
Cc: kvm@vger.kernel.org, Thomas Huth <thuth@redhat.com>,
David Hildenbrand <david@redhat.com>,
Janosch Frank <frankja@linux.ibm.com>,
Andrew Jones <drjones@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Christian Borntraeger <borntraeger@de.ibm.com>,
linux-s390@vger.kernel.org
Subject: Re: [kvm-unit-tests PATCH 4/4] s390x: add Protected VM support
Date: Wed, 19 Aug 2020 13:38:49 +0200 [thread overview]
Message-ID: <87r1s2sw52.fsf@linux.ibm.com> (raw)
In-Reply-To: <20200819123443.2287abc3.cohuck@redhat.com>
On Wed, Aug 19, 2020 at 12:34 PM +0200, Cornelia Huck <cohuck@redhat.com> wrote:
> On Tue, 18 Aug 2020 15:04:24 +0200
> Marc Hartmayer <mhartmay@linux.ibm.com> wrote:
>
>> Add support for Protected Virtual Machine (PVM) tests. For starting a
>> PVM guest we must be able to generate a PVM image by using the
>> `genprotimg` tool from the s390-tools collection. This requires the
>> ability to pass a machine-specific host-key document, so the option
>> `--host-key-document` is added to the configure script.
>>
>> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
>> ---
>> configure | 9 +++++++++
>> s390x/Makefile | 17 +++++++++++++++--
>> s390x/selftest.parmfile | 1 +
>> s390x/unittests.cfg | 1 +
>> scripts/s390x/func.bash | 35 +++++++++++++++++++++++++++++++++++
>> 5 files changed, 61 insertions(+), 2 deletions(-)
>> create mode 100644 s390x/selftest.parmfile
>> create mode 100644 scripts/s390x/func.bash
>
> (...)
>
>> +function arch_cmd_s390x()
>> +{
>> + local cmd=$1
>> + local testname=$2
>> + local groups=$3
>> + local smp=$4
>> + local kernel=$5
>> + local opts=$6
>> + local arch=$7
>> + local check=$8
>> + local accel=$9
>> + local timeout=${10}
>> +
>> + # run the normal test case
>> + "$cmd" "${testname}" "$groups" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout"
>> +
>> + # run PV test case
>> + kernel=${kernel%.elf}.pv.bin
>> + if [ ! -f "${kernel}" ]; then
>> + if [ -z "${HOST_KEY_DOCUMENT}" ]; then
>> + print_result 'SKIP' $testname '(no host-key document specified)'
>> + return 2
>> + fi
>> +
>> + print_result 'SKIP' $testname '(PVM image was not created)'
>
> When can that happen? Don't we already fail earlier if we specified a
> host key document, but genprotimg does not work?
./configure
make -j
./configure --host-key-document=…
./run_tests.sh
A contrived example, but…
>
>> + return 2
>> + fi
>> + "$cmd" "${testname}_PV" "$groups pv" "$smp" "$kernel" "$opts" "$arch" "$check" "$accel" "$timeout"
>> +}
>
--
Kind regards / Beste Grüße
Marc Hartmayer
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Gregor Pillen
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
next prev parent reply other threads:[~2020-08-19 11:38 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-18 13:04 [kvm-unit-tests PATCH 0/4] s390x: Add Protected VM support Marc Hartmayer
2020-08-18 13:04 ` Marc Hartmayer
2020-08-18 13:04 ` [kvm-unit-tests PATCH 1/4] common.bash: run `cmd` only if a test case was found Marc Hartmayer
2020-08-18 13:04 ` Marc Hartmayer
2020-08-19 10:20 ` Cornelia Huck
2020-08-19 10:20 ` Cornelia Huck
2020-08-19 10:37 ` David Hildenbrand
2020-08-18 13:04 ` [kvm-unit-tests PATCH 2/4] scripts: add support for architecture dependent functions Marc Hartmayer
2020-08-18 13:04 ` Marc Hartmayer
2020-08-18 14:31 ` Andrew Jones
2020-08-19 10:22 ` Cornelia Huck
2020-08-19 10:22 ` Cornelia Huck
2020-08-19 10:38 ` David Hildenbrand
2020-08-18 13:04 ` [kvm-unit-tests PATCH 3/4] run_tests/mkstandalone: add arch_cmd hook Marc Hartmayer
2020-08-18 13:04 ` Marc Hartmayer
2020-08-18 14:32 ` Andrew Jones
2020-08-19 10:23 ` Cornelia Huck
2020-08-19 10:23 ` Cornelia Huck
2020-08-19 10:39 ` David Hildenbrand
2020-08-18 13:04 ` [kvm-unit-tests PATCH 4/4] s390x: add Protected VM support Marc Hartmayer
2020-08-18 13:04 ` Marc Hartmayer
2020-08-18 13:20 ` Janosch Frank
2020-08-19 10:34 ` Cornelia Huck
2020-08-19 10:34 ` Cornelia Huck
2020-08-19 11:38 ` Marc Hartmayer [this message]
2020-08-19 10:42 ` David Hildenbrand
2020-08-19 11:49 ` Marc Hartmayer
2020-08-21 11:47 ` Marc Hartmayer
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=87r1s2sw52.fsf@linux.ibm.com \
--to=mhartmay@linux.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=drjones@redhat.com \
--cc=frankja@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pbonzini@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.