From: Janosch Frank <frankja@linux.ibm.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>,
qemu-devel <qemu-devel@nongnu.org>,
Cornelia Huck <cohuck@redhat.com>
Cc: Halil Pasic <pasic@linux.ibm.com>, Thomas Huth <thuth@redhat.com>,
qemu-s390x <qemu-s390x@nongnu.org>,
David Hildenbrand <david@redhat.com>
Subject: Re: [PATCH 1/1] s390x/protvirt: allow to IPL secure execution guests with -no-reboot
Date: Tue, 21 Jul 2020 14:25:33 +0200 [thread overview]
Message-ID: <ecec58d9-4b9c-c677-e2d2-ca3cf0632530@linux.ibm.com> (raw)
In-Reply-To: <20200721103202.30610-1-borntraeger@de.ibm.com>
[-- Attachment #1.1: Type: text/plain, Size: 1836 bytes --]
On 7/21/20 12:32 PM, Christian Borntraeger wrote:
> Right now -no-reboot does prevent secure execution guests from running.
s/-no-reboot/--no-reboot/
> This is right from an implementation aspect, as we have modeled the
> transition from non-secure to secure as a program directed IPL.
s/secure/protected/
> From a user perspective, this is not the behavior of least surprise.
>
> We should implement the IPL into secure mode similar to the functions
s/secure/protected/
> that we use for kdump/kexec. In other words we do not stop here when
> -no-reboot is specified on the command line. Like function 0 or function
> 1 Function 10 is not a classic reboot. For example it can only be called
s/Function/function/ and maybe also add a comma
> once. To call it a 2nd time a real reboot/reset must happen in-between.
> So function code 10 is more or less a state transition reset, but not a
> "standard" reset or reboot.
>
> Fixes: 4d226deafc44 ("s390x: protvirt: Support unpack facility")
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
> ---
> hw/s390x/ipl.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c
> index ce21494c08..e312a35133 100644
> --- a/hw/s390x/ipl.c
> +++ b/hw/s390x/ipl.c
> @@ -633,7 +633,8 @@ void s390_ipl_reset_request(CPUState *cs, enum s390_reset reset_type)
> }
> }
> if (reset_type == S390_RESET_MODIFIED_CLEAR ||
> - reset_type == S390_RESET_LOAD_NORMAL) {
> + reset_type == S390_RESET_LOAD_NORMAL ||
> + reset_type == S390_RESET_PV) {
> /* ignore -no-reboot, send no event */
> qemu_system_reset_request(SHUTDOWN_CAUSE_SUBSYSTEM_RESET);
> } else {
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-07-21 12:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-21 10:32 [PATCH 1/1] s390x/protvirt: allow to IPL secure execution guests with -no-reboot Christian Borntraeger
2020-07-21 10:49 ` Viktor Mihajlovski
2020-07-21 10:55 ` David Hildenbrand
2020-07-21 12:25 ` Janosch Frank [this message]
2020-07-21 12:29 ` Christian Borntraeger
2020-07-23 15:05 ` Cornelia Huck
2020-07-23 15:52 ` Christian Borntraeger
2020-07-23 17:15 ` 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=ecec58d9-4b9c-c677-e2d2-ca3cf0632530@linux.ibm.com \
--to=frankja@linux.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=pasic@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.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 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.