Commit f599c5cb authored by Izik Eidus's avatar Izik Eidus Committed by Greg Kroah-Hartman
Browse files

KVM: Fix dirty bit tracking for slots with large pages

(cherry picked from commit e244584f

)

When slot is already allocated and being asked to be tracked we need
to break the large pages.

This code flush the mmu when someone ask a slot to start dirty bit
tracking.
Signed-off-by: default avatarIzik Eidus <ieidus@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d2127c83
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
......@@ -550,6 +550,8 @@ int __kvm_set_memory_region(struct kvm *kvm,
if (!new.dirty_bitmap)
goto out_free;
memset(new.dirty_bitmap, 0, dirty_bytes);
if (old.npages)
kvm_arch_flush_shadow(kvm);
}
#endif /* not defined CONFIG_S390 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment