From: Keir Fraser Subject: Re: [PATCH] VMX: avoid taking locks with irqs disabled Date: Tue, 21 Oct 2008 14:08:48 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Tian, Kevin" , Tim Deegan , "xen-devel@lists.xensource.com" Cc: "Wei, Gang" List-Id: xen-devel@lists.xenproject.org On 21/10/08 13:50, "Tian, Kevin" wrote: > > I'm a bit curious why call funtion ipi is required here, or why > rendezvous is required here. All the rendezvous stuff in current > ipi function is just: > a) cpu0 waits for all other cpus entering rendezvous loop, and > then update master_stime > b) other cpus enter loop and wait for cpu0 to update master_stime > > Then each cpu continues with rest stuff independently. In this > case, it seems enough to just ensure master_stime updated > before sending softirq, and thus ipi is actually not required. > Do I miss anything? :-) We want to gather all timestamps as close together as possible. Dan measured that this produced vastly less system-time skew across CPUs. Hence we do all the stamp gathering in IRQ context. -- Keir