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-ia64-devel

RE: [Xen-ia64-devel] xen_timer_interrupt: can someone explain the code ?

To: "Tristan Gingold" <Tristan.Gingold@xxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel] xen_timer_interrupt: can someone explain the code ?
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Mon, 20 Feb 2006 09:55:38 +0800
Delivery-date: Mon, 20 Feb 2006 02:09:04 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYzpuYF+TnUxY1fT5qZf9/LSiBaywCGS91g
Thread-topic: [Xen-ia64-devel] xen_timer_interrupt: can someone explain the code ?
>Why current must be always awaken in VTI ?
>       if (VMX_DOMAIN(current))
>               vcpu_wake(current);

This vcpu_wake is invoked here because of the same reason of below
vcpu_wake() being invoked, if below vcpu_wake can be removed, the above
one can also be removed. Vcpu_timer_expired always failed for VTI
domain, so an extra vcpu_wake is invoked  for VTIdomain.


> This is the core job.
> The only question is why vcpu_wake ?
>       if (!is_idle_domain(current->domain))  {
>               if (vcpu_timer_expired(current)) {
>                       vcpu_pend_timer(current);
>                       // ensure another timer interrupt 
> happens even if domain doesn't
>                       vcpu_set_next_timer(current);
>                       vcpu_wake(current);
>               }
>       }
>       new_itm = local_cpu_data->itm_next;




Thanks,
-Anthony 


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

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

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