diff options
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index f29abeb6a912..a3a8f5fb369e 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -621,7 +621,7 @@ int __kvm_set_memory_region(struct kvm *kvm, | |||
621 | struct kvm_userspace_memory_region *mem, | 621 | struct kvm_userspace_memory_region *mem, |
622 | int user_alloc) | 622 | int user_alloc) |
623 | { | 623 | { |
624 | int r, flush_shadow = 0; | 624 | int r; |
625 | gfn_t base_gfn; | 625 | gfn_t base_gfn; |
626 | unsigned long npages; | 626 | unsigned long npages; |
627 | unsigned long i; | 627 | unsigned long i; |
@@ -741,8 +741,6 @@ skip_lpage: | |||
741 | if (kvm_create_dirty_bitmap(&new) < 0) | 741 | if (kvm_create_dirty_bitmap(&new) < 0) |
742 | goto out_free; | 742 | goto out_free; |
743 | /* destroy any largepage mappings for dirty tracking */ | 743 | /* destroy any largepage mappings for dirty tracking */ |
744 | if (old.npages) | ||
745 | flush_shadow = 1; | ||
746 | } | 744 | } |
747 | #else /* not defined CONFIG_S390 */ | 745 | #else /* not defined CONFIG_S390 */ |
748 | new.user_alloc = user_alloc; | 746 | new.user_alloc = user_alloc; |
@@ -813,9 +811,6 @@ skip_lpage: | |||
813 | kvm_free_physmem_slot(&old, &new); | 811 | kvm_free_physmem_slot(&old, &new); |
814 | kfree(old_memslots); | 812 | kfree(old_memslots); |
815 | 813 | ||
816 | if (flush_shadow) | ||
817 | kvm_arch_flush_shadow(kvm); | ||
818 | |||
819 | return 0; | 814 | return 0; |
820 | 815 | ||
821 | out_free: | 816 | out_free: |