Skip to contentSkip to conversation

KVM: x86/mmu: Move the misplaced export of kvm_zap_gfn_range()

PATCH Applied Kai Huang 2 participants 2 messages Oct 21, 2025 – Nov 10, 2025

Subsystems (3)
lore
Share & tools
lore

Kai Huang

author
#0 lore raw

PATCH 1/1 KVM: x86/mmu: Move the misplaced export of kvm_zap_gfn_range()

Currently, the export of kvm_zap_gfn_range() is misplaced, i.e., it's not placed right after the kvm_zap_gfn_range() function body but after kvm_mmu_zap_collapsible_spte(). Move it to the right place.

No functional change intended.

---
 arch/x86/kvm/mmu/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/mmu/mmu.c +1 -1
index 18d69d48bc55..329cf3508f46 100644
@@ -6863,6 +6863,7 @@ void kvm_zap_gfn_range(struct kvm *kvm, gfn_t gfn_start, gfn_t gfn_end)
 
 	write_unlock(&kvm->mmu_lock);
 }
+EXPORT_SYMBOL_FOR_KVM_INTERNAL(kvm_zap_gfn_range);
 
 static bool slot_rmap_write_protect(struct kvm *kvm,
 				    struct kvm_rmap_head *rmap_head,
@@ -7204,7 +7205,6 @@ static bool kvm_mmu_zap_collapsible_spte(struct kvm *kvm,
 
 	return need_tlb_flush;
 }
-EXPORT_SYMBOL_FOR_KVM_INTERNAL(kvm_zap_gfn_range);
 
 static void kvm_rmap_zap_collapsible_sptes(struct kvm *kvm,
 					   const struct kvm_memory_slot *slot)

base-commit: b850841a53c56665c1f623edd429b3fc1578e9a4

Signature · 1 line
2.51.0
maintainer Applied
#1 lore raw
Quoted 8 lines · Kai Huang

Currently, the export of kvm_zap_gfn_range() is misplaced, i.e., it's not placed right after the kvm_zap_gfn_range() function body but after kvm_mmu_zap_collapsible_spte(). Move it to the right place.

No functional change intended.

[...]

Applied to kvm-x86 mmu, thanks!

[1/1] KVM: x86/mmu: Move the misplaced export of kvm_zap_gfn_range()

      https://github.com/kvm-x86/linux/commit/6422060aa9c7

--
https://github.com/kvm-x86/linux/tree/next