SHA256
1
0
forked from pool/xen

Updating link to change in openSUSE:Factory/xen revision 99.0

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=87c8ac43897718b61dbcbca0296d6c2a
This commit is contained in:
OBS User buildservice-autocommit
2010-09-27 22:07:21 +00:00
committed by Git OBS Bridge
parent 06b9899ef9
commit 163148b426
186 changed files with 2359 additions and 5185 deletions

View File

@@ -0,0 +1,30 @@
# HG changeset patch
# User Keir Fraser <keir.fraser@citrix.com>
# Date 1282069957 -3600
# Node ID 5218db847b58a151d8f320b7141efc984f759b35
# Parent 542e8cd16a6cf036e89b597ba6343245fcaafa25
x86 cpuidle: check whether cpu is online in cpu idle control
We observed a 2.6.18.8 dom0 kernel crash when Xen has maxcpus < num
of physical cores (maxcpus=3D4 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>
--- a/xen/arch/x86/acpi/cpuidle_menu.c
+++ b/xen/arch/x86/acpi/cpuidle_menu.c
@@ -270,9 +270,10 @@ static void menu_reflect(struct acpi_pro
static int menu_enable_device(struct acpi_processor_power *power)
{
- struct menu_device *data = &per_cpu(menu_devices, power->cpu);
+ if (!cpu_online(power->cpu))
+ return -1;
- memset(data, 0, sizeof(struct menu_device));
+ memset(&per_cpu(menu_devices, power->cpu), 0, sizeof(struct menu_device));
return 0;
}