WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] movl VCPU_processor(%ebx),%eax in exits.S

To: 赵彬 <haibinfeier@xxxxxxxxx>
Subject: Re: [Xen-devel] movl VCPU_processor(%ebx),%eax in exits.S
From: Wei Liu <liuw@xxxxxxxxx>
Date: Thu, 11 Aug 2011 10:04:43 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 10 Aug 2011 19:08:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CABFOHEtBePfzVWNsMGjYqBa0GwXfL8jxGs=CyA9je6eqVocFCQ@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CABFOHEtBePfzVWNsMGjYqBa0GwXfL8jxGs=CyA9je6eqVocFCQ@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
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.

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

<Prev in Thread] Current Thread [Next in Thread>