]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] replace diag10() with diag10_range() function
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Tue, 10 May 2011 15:13:41 +0000 (17:13 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Tue, 10 May 2011 15:13:43 +0000 (17:13 +0200)
commit270a05bb0de6323e8cd15eca9f12dbf2ac684dac
tree17c74e48a1d67b7691fbdd4955835f16db76ae88
parentf314fe83b295cd86ca2c5c85cfb2c4fddeb97dc0
[S390] replace diag10() with diag10_range() function

Currently the diag10() function can only release one page. For exploiters
that have to call diag10 on a contiguous memory region this is suboptimal.
This patch replaces the diag10() function with diag10_range() that is
able to release multiple pages. In addition to that the new function now
allows to release memory with addresses higher than 2047 MiB. This was
due to a restriction of the diagnose implementation under z/VM prior to
release 5.2.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/diag.h
arch/s390/kernel/diag.c
arch/s390/mm/cmm.c