Skip to contentSkip to conversation

UML - Mark SMP on UML/x86_64 as broken

PATCH In review Jeff Dike 2 participants 3 messages Aug 29, 2005 – Aug 30, 2005 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 4/9 UML - Mark SMP on UML/x86_64 as broken

Noticed by Al Viro - SMP on x86_64 is fundamentally broken due to UML's reuse of the host arch's percpu stuff. This is OK on x86, but the x86_64 pda stuff just won't work for UML.

arch/um/Kconfig +1 -1
Index: linux-2.6.13-rc6/arch/um/Kconfig
===================================================================
@@ -196,7 +196,7 @@
 config SMP
 	bool "Symmetric multi-processing support (EXPERIMENTAL)"
 	default n
-	depends on MODE_TT && EXPERIMENTAL
+	depends on (MODE_TT && EXPERIMENTAL && !SMP_BROKEN) || (BROKEN && SMP_BROKEN)
 	help
 	This option enables UML SMP support.
 	It is NOT related to having a real SMP box. Not directly, at least.
arch/um/Kconfig_x86_64 +4 -0
Index: linux-2.6.13-rc6/arch/um/Kconfig_x86_64
===================================================================
@@ -33,3 +33,7 @@
 config ARCH_REUSE_HOST_VSYSCALL_AREA
 	bool
 	default n
+
+config SMP_BROKEN
+	bool
+	default y

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 3 lines · Jeff Dike

Noticed by Al Viro - SMP on x86_64 is fundamentally broken due to UML's reuse of the host arch's percpu stuff. This is OK on x86, but the x86_64 pda stuff just won't work for UML.

The generic one should work too, it's just less efficient. So you can probably easily replace them.

-Andi

author
#2 lore raw
Quoted 2 lines · Andi Kleen

The generic one should work too, it's just less efficient. So you can probably easily replace them.

Yup, just something that hasn't been done yet.

Jeff