aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 764554350ed8..013a5b3e9f75 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1194,6 +1194,8 @@ int __kvm_set_memory_region(struct kvm *kvm,
1194 if (!new.dirty_bitmap) 1194 if (!new.dirty_bitmap)
1195 goto out_free; 1195 goto out_free;
1196 memset(new.dirty_bitmap, 0, dirty_bytes); 1196 memset(new.dirty_bitmap, 0, dirty_bytes);
1197 if (old.npages)
1198 kvm_arch_flush_shadow(kvm);
1197 } 1199 }
1198#endif /* not defined CONFIG_S390 */ 1200#endif /* not defined CONFIG_S390 */
1199 1201