Re: [PATCH v2 2/5] KVM: MMU: Convert remote flushes to kvm_mark_tlb_dirty() and a conditional flush

2012-05-22 Thread Takuya Yoshikawa
On Thu, 17 May 2012 13:24:41 +0300 Avi Kivity wrote: > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 2256f51..a2149d8 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -3130,7 +3130,9 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, struct > kvm_dirty_log *log) >

Re: [PATCH v2 2/5] KVM: MMU: Convert remote flushes to kvm_mark_tlb_dirty() and a conditional flush

2012-05-21 Thread Marcelo Tosatti
On Thu, May 17, 2012 at 01:24:41PM +0300, Avi Kivity wrote: > This allows us to later move the actual flush out of protection of the > mmu spinlock, provided there are no additional dependencies. > > Constructs of the form > > if (pred) > kvm_flush_remote_tlbs(kvm) > > are converted