Skip to contentSkip to conversation

fix-multiple-vmxon.patch

PATCH Arun Sharma 1 participant 1 message Apr 21, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

arch/x86/smpboot.c

Quoted 2 lines · Arun Sharma
arch/x86/smpboot.c renamed from arch/x86/smpboot.c~fix-multiple-vmxon +0 -0

The patch doesn't apply with -p1. The attached patch should be better.

-Arun

__vmxon() is called twice for the boot cpu, because identify_cpu() is called twice. This patch ensures that identify_cpu() and hence __vmxon() is called exactly once for the boot CPU.

xen/arch/x86/smpboot.c renamed from xen/arch/x86/smpboot.c~fix-multiple-vmxon +2 -1
@@ -114,7 +114,8 @@ void __init smp_alloc_memory(void)
 void __init smp_store_cpu_info(int id)
 {
     cpu_data[id] = boot_cpu_data;
-    identify_cpu(&cpu_data[id]);
+    if (id != 0)
+        identify_cpu(&cpu_data[id]);
 }
 
 /*

_

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel