All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] check whether cpu is online in cpu idle control
@ 2010-08-16 22:44 Wei Huang
  0 siblings, 0 replies; only message in thread
From: Wei Huang @ 2010-08-16 22:44 UTC (permalink / raw)
  To: 'xen-devel@lists.xensource.com'

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

We observed a 2.6.18.8 dom0 kernel crash when Xen has maxcpus < num of 
physical cores (maxcpus=4 for a 12-core system). It appeared that 
hypervisor doesn't check whether CPU is online or not. This small patch 
fixed the issue.

Signed-off-by: Uwe Dannowski <uwe.dannowski@amd.com>
Acked-by: Wei Huang <wei.huang2@amd.com>



[-- Attachment #2: cpuidle_menu_patch.txt --]
[-- Type: text/plain, Size: 425 bytes --]

diff -r 774dfc178c39 xen/arch/x86/acpi/cpuidle_menu.c
--- a/xen/arch/x86/acpi/cpuidle_menu.c	Thu Aug 12 17:06:21 2010 +0100
+++ b/xen/arch/x86/acpi/cpuidle_menu.c	Mon Aug 16 17:33:05 2010 -0500
@@ -272,6 +272,11 @@
 {
     struct menu_device *data = &per_cpu(menu_devices, power->cpu);
 
+    if (!cpu_online(power->cpu))
+    {
+        return -1;
+    }
+
     memset(data, 0, sizeof(struct menu_device));
 
     return 0;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-16 22:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-16 22:44 [PATCH] check whether cpu is online in cpu idle control Wei Huang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.