]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: Remove double gaddr calculation when notifying
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Wed, 8 Feb 2017 07:59:56 +0000 (08:59 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 24 Mar 2017 15:11:30 +0000 (16:11 +0100)
commitfe05cc1d74ba9c94923914d14478d5c19c28c4be
tree036ff1a54360054615b448b1c97b66975c0c2f02
parent1ea4025bbd0999d8938db8c7d759b32b686c2f5b
s390/mm: Remove double gaddr calculation when notifying

ptep_notify and gmap_shadow_notify both need a guest address and
therefore retrieve them from the available virtual host address.

As they operate on the same guest address, we can calculate it once
and then pass it on. As a gmap normally has more than one shadow gmap,
we also do not recalculate for each of them any more.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/gmap.c