From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v2 1/2] x86: defer processing events on the NMI exit path Date: Fri, 1 Mar 2013 16:01:17 +0000 Message-ID: <5130D0CD.9090305@citrix.com> 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.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Keir Fraser Cc: Malcolm Crossley , "Tim (Xen.org)" , Jan Beulich , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On 01/03/13 15:56, Keir Fraser wrote: > On 01/03/2013 11:53, "Jan Beulich" wrote: > >>> __softirq_pending is an unsigned long. Would it not be prudent to use >>> cmpq to save obscure bugs if the implementation changes, or are we >>> sufficiently sure that this wont happen? >> All other existing instances of similar assembly code use testl or >> cmpl, and in fact I merely copied some other instance. >> >> As we're not getting close to 32, I think we might rather want to >> adjust the __softirq_pending type. Keir? > Yup, I don't see any reason why it couldn't be a uint32_t. > > -- Keir > > Further to that, is there any reason that it cant be per-cpu, to save having information like this moving around pcpus in a hot cache line? ~Andrew