Skip to content

Commit 614f362

Browse files
committed
LoongArch: KVM: Fix build due to API changes
Commit 8569992 ("KVM: Use gfn instead of hva for mmu_notifier_retry") replaces mmu_invalidate_retry_hva() usage with mmu_invalidate_retry_gfn() for X86, LoongArch also need similar changes to fix build. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 5056c59 commit 614f362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/loongarch/kvm/mmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ static bool fault_supports_huge_mapping(struct kvm_memory_slot *memslot,
675675
*
676676
* There are several ways to safely use this helper:
677677
*
678-
* - Check mmu_invalidate_retry_hva() after grabbing the mapping level, before
678+
* - Check mmu_invalidate_retry_gfn() after grabbing the mapping level, before
679679
* consuming it. In this case, mmu_lock doesn't need to be held during the
680680
* lookup, but it does need to be held while checking the MMU notifier.
681681
*
@@ -855,7 +855,7 @@ static int kvm_map_page(struct kvm_vcpu *vcpu, unsigned long gpa, bool write)
855855

856856
/* Check if an invalidation has taken place since we got pfn */
857857
spin_lock(&kvm->mmu_lock);
858-
if (mmu_invalidate_retry_hva(kvm, mmu_seq, hva)) {
858+
if (mmu_invalidate_retry_gfn(kvm, mmu_seq, gfn)) {
859859
/*
860860
* This can happen when mappings are changed asynchronously, but
861861
* also synchronously if a COW is triggered by

0 commit comments

Comments
 (0)