Commit dcd707b4bdc10b4fa20efa116dbaeded21513115
Committed by
Martin Schwidefsky
1 parent
db0c2d5908
Exists in
master
and in
4 other branches
[S390] Replace nopav-message on VM.
Specifying kernel parameter "dasd=nopav" on systems running under VM has no function but results in message "disable PAV mode". Correct message is "'nopav' not supported on VM". Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Showing 1 changed file with 6 additions and 2 deletions Side-by-side Diff
drivers/s390/block/dasd_devmap.c
... | ... | @@ -258,8 +258,12 @@ |
258 | 258 | return residual_str; |
259 | 259 | } |
260 | 260 | if (strncmp("nopav", parsestring, length) == 0) { |
261 | - dasd_nopav = 1; | |
262 | - MESSAGE(KERN_INFO, "%s", "disable PAV mode"); | |
261 | + if (MACHINE_IS_VM) | |
262 | + MESSAGE(KERN_INFO, "%s", "'nopav' not supported on VM"); | |
263 | + else { | |
264 | + dasd_nopav = 1; | |
265 | + MESSAGE(KERN_INFO, "%s", "disable PAV mode"); | |
266 | + } | |
263 | 267 | return residual_str; |
264 | 268 | } |
265 | 269 | if (strncmp("fixedbuffers", parsestring, length) == 0) { |