Skip to content

Commit

Permalink
KVM: MMU: Set shadow pte atomically in mmu_pte_write_zap_pte()
Browse files Browse the repository at this point in the history
Setting shadow page table entry should be set atomicly using set_shadow_pte().

Signed-off-by: Izik Eidus <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Izik Eidus authored and avikivity committed Oct 22, 2007
1 parent ae6200b commit 7f2145a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ static void mmu_pte_write_zap_pte(struct kvm_vcpu *vcpu,
mmu_page_remove_parent_pte(child, spte);
}
}
*spte = 0;
set_shadow_pte(spte, 0);
kvm_flush_remote_tlbs(vcpu->kvm);
}

Expand Down

0 comments on commit 7f2145a

Please sign in to comment.