[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "Tristan Gingold" <Tristan.Gingold@xxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.