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/
Home Products Support Community News


[Xen-changelog] [xen-unstable] [IA64] init the hlt timer on a valid cpu

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] init the hlt timer on a valid cpu and migrate
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 22:11:06 +0000
Delivery-date: Wed, 30 Aug 2006 15:17:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID e317ad162eba350fe32b780dd8293fc1ae883716
# Parent  684fdcfb251a443fa885c142b427d253ec033212
[IA64] init the hlt timer on a valid cpu and migrate

Based on a patch from Anthony Xu, v->processor is not initialized
in alloc_vcpu_struct() when we initialize the hlt_timer.  Init the
timer on the first cpu and migrate it in schedule_tail().

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
 xen/arch/ia64/xen/domain.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 684fdcfb251a -r e317ad162eba xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c        Mon Aug 28 16:26:37 2006 -0600
+++ b/xen/arch/ia64/xen/domain.c        Tue Aug 29 08:09:28 2006 -0600
@@ -122,6 +122,7 @@ void schedule_tail(struct vcpu *prev)
                __ia64_per_cpu_var(current_psr_ic_addr) = (int *)
                  (current->domain->arch.shared_info_va + XSI_PSR_IC_OFS);
+               migrate_timer(&current->arch.hlt_timer, current->processor);
@@ -305,7 +306,8 @@ struct vcpu *alloc_vcpu_struct(struct do
            v->arch.last_processor = INVALID_PROCESSOR;
        if (!VMX_DOMAIN(v)){
-               init_timer(&v->arch.hlt_timer, hlt_timer_fn, v, v->processor);
+               init_timer(&v->arch.hlt_timer, hlt_timer_fn, v,
+                          first_cpu(cpu_online_map));
        return v;

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] init the hlt timer on a valid cpu and migrate, Xen patchbot-unstable <=