aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/ipl_vmparm.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2019-02-20 14:26:51 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-04-26 12:34:05 +0200
commit5f1207fbe74450eb887155ba432bfc079312b0fe (patch)
treea38a8b27c8135da4ecda152156138327534d22bc /arch/s390/kernel/ipl_vmparm.c
parents390/ipl: make ipl_info less confusing (diff)
downloadlinux-dev-5f1207fbe74450eb887155ba432bfc079312b0fe.tar.xz
linux-dev-5f1207fbe74450eb887155ba432bfc079312b0fe.zip
s390/ipl: provide uapi header for list directed IPL
The IPL parameter block is used as an interface between Linux and the machine to query and change the boot device and boot options. To be able to create IPL parameter block in user space and pass it as segment to kexec provide an uapi header with proper structure definitions for the block. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to '')
-rw-r--r--arch/s390/kernel/ipl_vmparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/ipl_vmparm.c b/arch/s390/kernel/ipl_vmparm.c
index 41613c1617ff..af43535a976d 100644
--- a/arch/s390/kernel/ipl_vmparm.c
+++ b/arch/s390/kernel/ipl_vmparm.c
@@ -11,7 +11,7 @@ size_t ipl_block_get_ascii_vmparm(char *dest, size_t size,
char has_lowercase = 0;
len = 0;
- if ((ipb->ccw.vm_flags & DIAG308_VM_FLAGS_VP_VALID) &&
+ if ((ipb->ccw.vm_flags & IPL_PB0_CCW_VM_FLAG_VP) &&
(ipb->ccw.vm_parm_len > 0)) {
len = min_t(size_t, size - 1, ipb->ccw.vm_parm_len);