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

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] movl VCPU_processor(%ebx),%eax in exits.S
From: 赵彬 <haibinfeier@xxxxxxxxx>
Date: Wed, 10 Aug 2011 23:42:06 +0800
Delivery-date: Wed, 10 Aug 2011 08:43:05 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Yh9Ja+1SvxG9P2ATIagxzpvFU06pcqSZKPymoZbHR0o=; b=U4BbPuMJwszEWOA14sScJ9rCC+bUn5yGN54paLT1trTI9ybntpxWCvKppRQpb+OIvx maElGqPDSVa0VT13b/qrCpwJODGxkr3K/ZLE+8P9340yFgBf8KoF/Zrd5bCjuI5nEMtx iYjXMLAXMXR2JhzWUCrkxpYx4dikjtxG2G9aM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>