Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: s390: fast path for shadow gmaps in gmap notifier

The default kvm gmap notifier doesn't have to handle shadow gmaps.
So let's just directly exit in case we get notified about one.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>

authored by

David Hildenbrand and committed by
Christian Borntraeger
65d0b0d4 01f71917

+2
+2
arch/s390/kvm/kvm-s390.c
··· 1986 1986 unsigned long prefix; 1987 1987 int i; 1988 1988 1989 + if (gmap_is_shadow(gmap)) 1990 + return; 1989 1991 if (start >= 1UL << 31) 1990 1992 /* We are only interested in prefix pages */ 1991 1993 return;