Commit 84cf91ad authored by Christian Borntraeger's avatar Christian Borntraeger Committed by Greg Kroah-Hartman

s390/cpumf: Fix lpp detection

commit 7a76aa95 upstream.

we have to check bit 40 of the facility list before issuing LPP
and not bit 48. Otherwise a guest running on a system with
"The decimal-floating-point zoned-conversion facility" and without
the "The set-program-parameters facility" might crash on an lpp
instruction.
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Fixes: e22cf8ca ("s390/cpumf: rework program parameter setting to detect guest samples")
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0d191230
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
__HEAD __HEAD
ENTRY(startup_continue) ENTRY(startup_continue)
tm __LC_STFL_FAC_LIST+6,0x80 # LPP available ? tm __LC_STFL_FAC_LIST+5,0x80 # LPP available ?
jz 0f jz 0f
xc __LC_LPP+1(7,0),__LC_LPP+1 # clear lpp and current_pid xc __LC_LPP+1(7,0),__LC_LPP+1 # clear lpp and current_pid
mvi __LC_LPP,0x80 # and set LPP_MAGIC mvi __LC_LPP,0x80 # and set LPP_MAGIC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment