aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 2025cdfb4593..cac66d505f57 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -796,11 +796,11 @@ int kvm_clear_guest(struct kvm *kvm, gpa_t gpa, unsigned long len)
796} 796}
797EXPORT_SYMBOL_GPL(kvm_clear_guest); 797EXPORT_SYMBOL_GPL(kvm_clear_guest);
798 798
799/* WARNING: Does not work on aliased pages. */
800void mark_page_dirty(struct kvm *kvm, gfn_t gfn) 799void mark_page_dirty(struct kvm *kvm, gfn_t gfn)
801{ 800{
802 struct kvm_memory_slot *memslot; 801 struct kvm_memory_slot *memslot;
803 802
803 gfn = unalias_gfn(kvm, gfn);
804 memslot = __gfn_to_memslot(kvm, gfn); 804 memslot = __gfn_to_memslot(kvm, gfn);
805 if (memslot && memslot->dirty_bitmap) { 805 if (memslot && memslot->dirty_bitmap) {
806 unsigned long rel_gfn = gfn - memslot->base_gfn; 806 unsigned long rel_gfn = gfn - memslot->base_gfn;