0c76f22ef1
- bnc#633573 - System fail to boot after running several warm reboot tests 22749-vtd-workarounds.patch - Upstream patches from Jan 22744-ept-pod-locking.patch 22777-vtd-ats-fixes.patch 22781-pod-hap-logdirty.patch 22782-x86-emul-smsw.patch 22789-i386-no-x2apic.patch 22790-svm-resume-migrate-pirqs.patch 22816-x86-pirq-drop-priv-check.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=94
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
# 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>
|
|
|
|
Index: xen-4.0.2-testing/xen/arch/x86/acpi/cpuidle_menu.c
|
|
===================================================================
|
|
--- xen-4.0.2-testing.orig/xen/arch/x86/acpi/cpuidle_menu.c
|
|
+++ xen-4.0.2-testing/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;
|
|
}
|