9a05aa7fc4
22707-x2apic-preenabled-check.patch - bnc#641419 - L3: Xen: qemu-dm reports "xc_map_foreign_batch: mmap failed: Cannot allocate memory" 7434-qemu-rlimit-as.patch - Additional or upstream patches from Jan 22693-fam10-mmio-conf-base-protect.patch 22694-x86_64-no-weak.patch 22708-xenctx-misc.patch 21432-4.0-cpu-boot-failure.patch 22645-amd-flush-filter.patch qemu-fix-7433.patch - Maintain compatibility with the extid flag even though it is deprecated for both legacy and sxp config files. hv_extid_compatibility.patch - bnc#649209-improve suspend eventchn lock suspend_evtchn_lock.patch - Removed the hyper-v shim patches in favor of using the upstream version. - bnc#641419 - L3: Xen: qemu-dm reports "xc_map_foreign_batch: mmap failed: Cannot allocate memory" qemu-rlimit-as.patch - Upstream c/s 7433 to replace qemu_altgr_more.patch 7433-qemu-altgr.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=90
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
# HG changeset patch
|
|
# User Keir Fraser <keir@xen.org>
|
|
# Date 1294742461 0
|
|
# Node ID 7a203c60d588a7a15a28a6fb16c69feafd157e0d
|
|
# Parent 64bb7d9904a64cc4561c6d541d857acf46e42180
|
|
x86: don't crash when a CPU cannot be brought online during boot
|
|
References: bnc#656369, bnc#658704
|
|
|
|
x86_cpu_to_apicid[] gets set to BAD_APICID when bringup of a secondary
|
|
CPU fails, yet srat_detect_node() wants to use this as array index.
|
|
|
|
Signed-off-by: Jan Beulich <jbeulich@novell.com>
|
|
|
|
Index: xen-4.0.1-testing/xen/arch/x86/setup.c
|
|
===================================================================
|
|
--- xen-4.0.1-testing.orig/xen/arch/x86/setup.c
|
|
+++ xen-4.0.1-testing/xen/arch/x86/setup.c
|
|
@@ -1103,10 +1103,13 @@ void __init __start_xen(unsigned long mb
|
|
__cpu_up(i);
|
|
}
|
|
|
|
- /* Set up cpu_to_node[]. */
|
|
- srat_detect_node(i);
|
|
- /* Set up node_to_cpumask based on cpu_to_node[]. */
|
|
- numa_add_cpu(i);
|
|
+ if ( cpu_online(i) )
|
|
+ {
|
|
+ /* Set up cpu_to_node[]. */
|
|
+ srat_detect_node(i);
|
|
+ /* Set up node_to_cpumask based on cpu_to_node[]. */
|
|
+ numa_add_cpu(i);
|
|
+ }
|
|
}
|
|
|
|
printk("Brought up %ld CPUs\n", (long)num_online_cpus());
|