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-changelog

[Xen-changelog] [linux-2.6.18-xen] Skip vcpu_hotplug for VCPU 0 in smp_r

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Skip vcpu_hotplug for VCPU 0 in smp_resume.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 01 Apr 2009 10:00:04 -0700
Delivery-date: Wed, 01 Apr 2009 10:00:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1238582581 -3600
# Node ID 67a7ffcc50679d134e6079c738c63049d6314add
# Parent  b358ebf1c41664c7a7cf5b33feb5df779631229f
Skip vcpu_hotplug for VCPU 0 in smp_resume.
This function can occasionally take up to 2 seconds to complete,
and smp_suspend also skips VCPU 0.

Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
---
 drivers/xen/core/cpu_hotplug.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r b358ebf1c416 -r 67a7ffcc5067 drivers/xen/core/cpu_hotplug.c
--- a/drivers/xen/core/cpu_hotplug.c    Tue Mar 31 12:01:50 2009 +0100
+++ b/drivers/xen/core/cpu_hotplug.c    Wed Apr 01 11:43:01 2009 +0100
@@ -144,8 +144,11 @@ void smp_resume(void)
 {
        unsigned int cpu;
 
-       for_each_possible_cpu(cpu)
+       for_each_possible_cpu(cpu) {
+               if (cpu == 0)
+                       continue;
                vcpu_hotplug(cpu);
+       }
 }
 
 int cpu_up_check(unsigned int cpu)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Skip vcpu_hotplug for VCPU 0 in smp_resume., Xen patchbot-linux-2.6.18-xen <=