]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit2fa5ed7d87074268b5d29cdff6c4f81f51666885
tree036ff1a54360054615b448b1c97b66975c0c2f02
parent0b7bb6af1d734b15dbebec942767708e8ca40ca3
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