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] found a small bugRE:[Xen-ia64-devel][ PATCH]

To: "Xu, Anthony" <anthony.xu@xxxxxxxxx>, "Alex Williamson" <alex.williamson@xxxxxx>
Subject: Re: [Xen-ia64-devel][PATCH] found a small bugRE:[Xen-ia64-devel][ PATCH] pal_halt_light emulatefor domU TAKE3
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Fri, 01 Sep 2006 10:21:58 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 31 Aug 2006 18:22:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: (Your message of "Thu, 31 Aug 2006 09:44:20 +0800") <01913ADC4FF97E40AE0E2B001574AEE14EB695@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: <01913ADC4FF97E40AE0E2B001574AEE14EB695@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Anthony

 I tested following changes, it works fine.

(13:44 Run in 2xDomU Kernel Compile 
and DomVTI(nosmp) boot test)

Thanks
Atsushi SAKAI

>+++ b/xen/arch/ia64/xen/hypercall.c    Thu Aug 24 11:48:35 2006 -0600
>@@ -235,7 +235,12 @@ fw_hypercall (struct pt_regs *regs)
>                       }
>                       else {
>                               perfc_incrc(pal_halt_light);
>-                              do_sched_op_compat(SCHEDOP_yield, 0);  
>+                              migrate_timer(&v->arch.hlt_timer,  << 
><<<v->arch.hlt_timer.cpu=v->processor;
>+                                            v->processor);
>+                              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;
>
>I also propose use above assignment state to substitute migrate_timer,
>Because at this time hlt_timer is definitely stopped, we can change 
>hlt_timer.cpu
>directly. As we know, migrate_timer may need to get two big spin_locks, 
>in huge box, I think this may cause performance degradation.


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

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