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] [PATCH] pal_halt_light emulatefor domU TAKE3

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] pal_halt_light emulatefor domU TAKE3
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Thu, 24 Aug 2006 10:50:22 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 Aug 2006 18:51:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: (Your message of "Thu, 24 Aug 2006 10:21:39 +0900") <20060824012139.GA12861%yamahata@xxxxxxxxxxxxx>
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>
References: <01913ADC4FF97E40AE0E2B001574AEE14814DF@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20060824012139.GA12861%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Status

I already started testing yamahata's suggested code from yesterday night.
But it does not come to 16h (currently 13h30m running is passed at 10:30 
JST(+9:00))
Test Configuration is 2xDomU Linux Kernel Compile Test on 4xpCPU w/ credit 
scheduler.

1)migrate_timer for hlt_timer_fn is added at fw_hypercall(pal_halt_light)
  This makes correct pCPU work for timer.

2)To avoid soft lockup message(10sec timer stop) at Dom0/U,
  I add the condition for checking in vcpu_get_next_timer_ns.
  domain_itm > ia64_get_itc
  If above condition is not satisfied 
  Just set the timer interval itm_delta from NOW().

3)Remove vcpu_pend_timer from hlt_timer_fn.
  It previously makes the state that vcpu is running but timer(VIRQ_ITC) is 
stopped.

(References)
about migrate_timer position
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-08/msg00324.html
Yamahata's for VTI migrate timer.
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-07/msg00375.html
About vcpu_get_next_timer_ns
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-08/msg00290.html
stop_timer
http://lists.xensource.com/archives/html/xen-ia64-devel/2006-07/msg00171.html


Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>




Thanks
Atsushi SAKAI



>On Wed, Aug 23, 2006 at 09:32:24PM +0800, Xu, Anthony wrote:
>
>> I agree with Yamahata partially,
>> If I'm right, credit scheduler only schedules runnable vcpus,
>> So when context_switch is called, the scheduled in vcpu's hlt_timer must be 
>> Stopped, it is unnecessary to call migrate_timer in context_switch.
>
>Agreed.
>
>-- 
>yamahata
>





Attachment: pal_halt_light_emul_domu_take3c.patch
Description: Binary data

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