Skip to content

Commit 803482f

Browse files
yamahatabonzini
authored andcommitted
KVM: x86/mmu: Use SHADOW_NONPRESENT_VALUE for atomic zap in TDP MMU
Use SHADOW_NONPRESENT_VALUE when zapping TDP MMU SPTEs with mmu_lock held for read, tdp_mmu_zap_spte_atomic() was simply missed during the initial development. Fixes: 7f01cab ("KVM: x86/mmu: Allow non-zero value for non-present SPTE and removed SPTE") Signed-off-by: Isaku Yamahata <[email protected]> [sean: write changelog] Signed-off-by: Sean Christopherson <[email protected]> Reviewed-by: Kai Huang <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent cba23f3 commit 803482f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/mmu/tdp_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static inline int tdp_mmu_zap_spte_atomic(struct kvm *kvm,
626626
* SPTEs.
627627
*/
628628
handle_changed_spte(kvm, iter->as_id, iter->gfn, iter->old_spte,
629-
0, iter->level, true);
629+
SHADOW_NONPRESENT_VALUE, iter->level, true);
630630

631631
return 0;
632632
}

0 commit comments

Comments
 (0)