KVM: s390: fast path for shadow gmaps in gmap notifier
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 27 Apr 2015 14:29:34 +0000 (16:29 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 20 Jun 2016 07:55:21 +0000 (09:55 +0200)
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>
arch/s390/kvm/kvm-s390.c

index 9dd52980605cb021ab1552bc6d8b2e5e2ef8d1f3..45a8316ba1ebe6124962b756dac2d8510215398e 100644 (file)
@@ -1986,6 +1986,8 @@ static void kvm_gmap_notifier(struct gmap *gmap, unsigned long start,
        unsigned long prefix;
        int i;
 
+       if (gmap_is_shadow(gmap))
+               return;
        if (start >= 1UL << 31)
                /* We are only interested in prefix pages */
                return;