X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=virt%2Fkvm%2Fkvm_main.c;h=67cd0b88a6b6ff91b0225eb705b84386370eb97c;hb=1b67fd086dd7be076f190dfe4b52403d0cf58375;hp=2c2c0254c2d8d2e09c4041c1259ff177b6c8d225;hpb=049eb096da48db0421dd5e358b9b082a1a8a2025;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 2c2c025..67cd0b8 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -482,7 +482,8 @@ static int kvm_mmu_notifier_invalidate_range_start(struct mmu_notifier *mn, * count is also read inside the mmu_lock critical section. */ kvm->mmu_notifier_count++; - need_tlb_flush = kvm_unmap_hva_range(kvm, range->start, range->end); + need_tlb_flush = kvm_unmap_hva_range(kvm, range->start, range->end, + range->flags); need_tlb_flush |= kvm->tlbs_dirty; /* we've to flush the tlb before the pages can be freed */ if (need_tlb_flush) @@ -1893,7 +1894,7 @@ static int hva_to_pfn_remapped(struct vm_area_struct *vma, * not call the fault handler, so do it here. */ bool unlocked = false; - r = fixup_user_fault(current, current->mm, addr, + r = fixup_user_fault(current->mm, addr, (write_fault ? FAULT_FLAG_WRITE : 0), &unlocked); if (unlocked)