[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-ia64-devel] [PATCH] bug fix new_tlbflush_clock_period()



On Mon, Feb 05, 2007 at 10:02:53AM +0800, Xu, Anthony wrote:
> Isaku Yamahata write on 2007年2月5日 9:45:
> > Hi Kouya.
> > Good catch!
> > Although this patch already commited and I made the bug,
> > vti domain also relies on tlb flush lock.
> > (See flush_vtlb_for_context_switch())
> > 
> > So we should do
> >   if (!test_bit(_VCPUF_initialize))
> >     continue
> >   if (VMX_DOMAIN(v))
> >     <flush all hash and collision chain of v>
> >   else
> >     vcpu_vhpt_flush()
> > 
> > Or
> > 
> >   disable the tlb flush clock usage in
> > flush_vtlb_for_context_switch(). 
> > 
> 
> Hi Isaku,
> 
> Why do we need to call vcpu_vhpt_flush?
> IMO we only need to call __local_flush_tlb_all, if we use per-vcpu VHPT.
> Can you elaborate it?

That's right.
when I wrote that, I tried to apply tlb flush clock to
not only mTLB and vhpt but also per-vcpu vhpt. but it isn't
used for per-vcpu vhpt. So I removed the related bogus code.

-- 
yamahata

Attachment: 13838_b641ff64e981_tlbflush_clock_fix.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.