Kernel KVM virtualization development
 help / color / mirror / Atom feed
* tlb flushing after spin_unlock of mmu lock
@ 2009-04-11  4:45 Peter Teoh
  2009-04-16 19:19 ` Marcelo Tosatti
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Teoh @ 2009-04-11  4:45 UTC (permalink / raw)
  To: kvm

In this function, the TLB flushing comes before spin unlock,

void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot)
{
       struct kvm_mmu_page *sp;

       spin_lock(&kvm->mmu_lock);

       kvm_flush_remote_tlbs(kvm);
       spin_unlock(&kvm->mmu_lock);
}


but in kvm_vm_ioctl_set_memory_alias():

       spin_unlock(&kvm->mmu_lock);
       kvm_mmu_zap_all(kvm);

it comes after inside kvm_mmu_zap_all().   Does it sound logical?


-- 
Regards,
Peter Teoh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-16 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-11  4:45 tlb flushing after spin_unlock of mmu lock Peter Teoh
2009-04-16 19:19 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox