Skip to content

Commit 31f6e38

Browse files
committed
KVM: x86/mmu: remove unused variable
The last use of 'pfn' went away with the same-named argument to host_pfn_mapping_level; now that the hugepage level is obtained exclusively from the host page tables, kvm_mmu_zap_collapsible_spte does not need to know host pfns at all. Fixes: a8ac499 ("KVM: x86/mmu: Don't require refcounted "struct page" to create huge SPTEs") Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent c4edb2b commit 31f6e38

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/x86/kvm/mmu/mmu.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6416,13 +6416,11 @@ static bool kvm_mmu_zap_collapsible_spte(struct kvm *kvm,
64166416
u64 *sptep;
64176417
struct rmap_iterator iter;
64186418
int need_tlb_flush = 0;
6419-
kvm_pfn_t pfn;
64206419
struct kvm_mmu_page *sp;
64216420

64226421
restart:
64236422
for_each_rmap_spte(rmap_head, &iter, sptep) {
64246423
sp = sptep_to_sp(sptep);
6425-
pfn = spte_to_pfn(*sptep);
64266424

64276425
/*
64286426
* We cannot do huge page mapping for indirect shadow pages,

0 commit comments

Comments
 (0)