Searched hist:"7 faa543df19bf62d4583a64d3902705747f2ad29" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/s390/kvm/ |
H A D | gaccess.c | diff 7faa543df19bf62d4583a64d3902705747f2ad29 Fri Nov 26 17:45:48 CET 2021 Janis Schoetterl-Glausch <scgl@linux.ibm.com> KVM: s390: gaccess: Refactor access address range check
Do not round down the first address to the page boundary, just translate it normally, which gives the value we care about in the first place. Given this, translating a single address is just the special case of translating a range spanning a single page.
Make the output optional, so the function can be used to just check a range.
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Message-Id: <20211126164549.7046-3-scgl@linux.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
|