From: Keir Fraser Subject: Re: [PATCH] VMX: avoid taking locks with irqs disabled Date: Tue, 21 Oct 2008 13:37:27 +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:29, "Tian, Kevin" wrote: >> Actually this new partitioning of locks into two equivalence classes is >> begging for some run-time checking in debug builds. I'll sort >> out a patch >> for that. > > Did you flush out the patch into xen bits? I guess there may > be other instances breaking that guideline. Just curious whether > Linux side already recognized similar constraints. It's possibly > not. Then another angle is, instead of pushing constraint on > spinlock usage, could we instead change timer rendezvous > style? Use softirq instead of call function should release the > constraints like stop_machine. :-) I'm flushing out fixes for this class of race before I check in the debug code. I don't think it's an unreasonable new constraint, it just hasn't been enforced before and so various Xen code breaks. I should get the patches flushed out later today. -- Keir