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 emulate for domU TAKE3

To: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] pal_halt_light emulate for domU TAKE3
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 23 Aug 2006 19:41:26 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 Aug 2006 03:41:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200608231029.k7NATHDa013963@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <200608211138.k7LBccHr023385@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20060822034345.GB17136%yamahata@xxxxxxxxxxxxx> <200608220544.k7M5idNA031629@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20060822081116.GD17136%yamahata@xxxxxxxxxxxxx> <200608220828.k7M8SxR0004445@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20060822090439.GF17136%yamahata@xxxxxxxxxxxxx> <200608220953.k7M9ruUN028782@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <200608230848.k7N8mLUY013769@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20060823102310.GC24626%yamahata@xxxxxxxxxxxxx> <200608231029.k7NATHDa013963@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
Calling migrate_timer from context_switch() seems to introduce
unnecessary overhead.
Why did you choose to insert migrate_timer() to context_switch()
instead of inserting it ot the following position?

diff -r 8c6bb45901e7 xen/arch/ia64/xen/hypercall.c
--- a/xen/arch/ia64/xen/hypercall.c     Wed Aug 16 14:28:57 2006 -0600
+++ b/xen/arch/ia64/xen/hypercall.c     Mon Aug 21 13:46:05 2006 +0900
@@ -233,7 +233,10 @@ fw_hypercall (struct pt_regs *regs)
                        }
                        else {
                                perfc_incrc(pal_halt_light);
-                               do_sched_op_compat(SCHEDOP_yield, 0);
    <<<<<<<<<<<<< migrate_timer() >>>>>>>>>>>>>>>>>>>>>>>>>>>
+                               set_timer(&v->arch.hlt_timer,
+                                       vcpu_get_next_timer_ns(v));
+                               do_sched_op_compat(SCHEDOP_block, 0);
+                               stop_timer(&v->arch.hlt_timer);
                        }
                        regs->r8 = 0;
                        regs->r9 = 0;


On Wed, Aug 23, 2006 at 07:29:11PM +0900, Atsushi SAKAI wrote:
> Hi, Isaku
> 
> Sorry for confusing.
> It should replace from "for context_switch" to "to context_switch"
> migrate_timer is in context_switch.
> 
> Thanks
> Atsushi 
> 
> >Hi Atsushi.
> >
> >On Wed, Aug 23, 2006 at 05:48:15PM +0900, Atsushi SAKAI wrote:
> >
> >> 1)migrate_timer for hlt_timer_fn is added for context_switch
> >>   This makes correct pCPU work for timer.
> >
> >Is it necessary to call migrate_timer() every context switch 
> >instead of calling it right before set_timer(&hlt_timer)?
> >
> >-- 
> >yamahata
> >
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Xen-ia64-devel mailing list
> Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-ia64-devel

-- 
yamahata

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