summaryrefslogtreecommitdiff
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>2015-04-27 16:29:34 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2016-06-20 09:55:21 +0200
commit65d0b0d4bcc67b596d8e7286c3bebf24c59ade6a (patch)
treeaf52d3cc6d3c01e7cd98665cfb8ebc3eff4327fc /arch/s390/kvm/kvm-s390.c
parent01f719176f28016da1b588f6560a4eef18a98a93 (diff)
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>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index 9dd52980605c..45a8316ba1eb 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -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;