Skip to content

Commit d1bb69d

Browse files
borntraegercohuck
authored andcommitted
s390x/protvirt: allow to IPL secure guests with -no-reboot
Right now, -no-reboot prevents secure guests from running. This is correct from an implementation point of view, as we have modeled the transition from non-secure to secure as a program directed IPL. From a user perspective, this is not the behavior of least surprise. We should implement the IPL into protected mode similar to the functions 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 once. Before calling it a second 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 <[email protected]> Reviewed-by: Janosch Frank <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Acked-by: Viktor Mihajlovski <[email protected]> Message-Id: <[email protected]> [CH: tweaked description] Signed-off-by: Cornelia Huck <[email protected]>
1 parent 8ffa52c commit d1bb69d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hw/s390x/ipl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,8 @@ void s390_ipl_reset_request(CPUState *cs, enum s390_reset reset_type)
630630
}
631631
}
632632
if (reset_type == S390_RESET_MODIFIED_CLEAR ||
633-
reset_type == S390_RESET_LOAD_NORMAL) {
633+
reset_type == S390_RESET_LOAD_NORMAL ||
634+
reset_type == S390_RESET_PV) {
634635
/* ignore -no-reboot, send no event */
635636
qemu_system_reset_request(SHUTDOWN_CAUSE_SUBSYSTEM_RESET);
636637
} else {

0 commit comments

Comments
 (0)