From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: movl VCPU_processor(%ebx),%eax in exits.S Date: Thu, 11 Aug 2011 10:04:43 +0800 Message-ID: <20110811020443.GC1889@limbo> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline 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: =?utf-8?B?6LW15b2s?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Aug 10, 2011 at 11:42:06PM +0800, 赵彬 wrote: > In the file \xen\arch\x86\hvm\svm\x86_32\exits.S > this instruction movl VCPU_processor(%ebx),%eax, I found > OFFSET(VCPU_processor, struct vcpu, processor) in asm-offsets.c,and so was > DEFINE(IRQSTAT_shift, LOG_2(sizeof(irq_cpustat_t))); > In my opinion,they means offset(vcpu,processor) and > LOG_2(sizeof(irq_cpustat_t) , am i right? > > movl VCPU_processor(%ebx),%eax > shl $IRQSTAT_shift,%eax > testl $~0,irq_stat(%eax,1) > jnz svm_process_softirqs > > I did't find irq_stat(,),and so I did't know what do the first three > instructions mean. xen/common/softirq.c A simple grep is enough for you. Wei.