Re: [BUG] x86 kenel won't boot under Virtual PC

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Sanders
Date: Sunday, September 7, 2008 - 4:22 pm

On Friday 05 September 2008 19:31, H. Peter Anvin wrote:

Yes the patch you supplied (and now in Linus's tree) fixes (part) of the problem.
In order to get a working kernel I also need a patch for the nops.h issue.  
I have tested and confirmed that the patch posted by Linus works and finally 
solves the problem with virtual PC.

Linus please apply your patch (which I quote below).
---
 arch/x86/Kconfig.cpu |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
index 2c518fb..b225219 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
@@ -382,14 +382,17 @@ config X86_OOSTORE
 # P6_NOPs are a relatively minor optimization that require a family >=
 # 6 processor, except that it is broken on certain VIA chips.
 # Furthermore, AMD chips prefer a totally different sequence of NOPs
-# (which work on all CPUs).  As a result, disallow these if we're
-# compiling X86_GENERIC but not X86_64 (these NOPs do work on all
-# x86-64 capable chips); the list of processors in the right-hand clause
-# are the cores that benefit from this optimization.
+# (which work on all CPUs).  In addition, it looks like Virtual PC
+# does not understand them.
+#
+# As a result, disallow these if we're not compiling for X86_64 (these
+# NOPs do work on all x86-64 capable chips); the list of processors in
+# the right-hand clause are the cores that benefit from this optimization.
 #
 config X86_P6_NOP
 	def_bool y
-	depends on (X86_64 || !X86_GENERIC) && (M686 || MPENTIUMII || MPENTIUMIII || MPENTIUMM || MCORE2 || MPENTIUM4 || MPSC)
+	depends on X86_64
+	depends on (MCORE2 || MPENTIUM4 || MPSC)
 
 config X86_TSC
 	def_bool y



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [BUG] x86 kenel won't boot under Virtual PC, David Sanders, (Sun Sep 7, 1:07 pm)
Re: [BUG] x86 kenel won't boot under Virtual PC, David Sanders, (Sun Sep 7, 4:22 pm)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Sun Sep 7, 6:48 pm)
Re: [BUG] x86 kenel won't boot under Virtual PC, David Sanders, (Sun Sep 7, 7:49 pm)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Sun Sep 7, 9:04 pm)
Re: [BUG] x86 kenel won't boot under Virtual PC, Andi Kleen, (Mon Sep 8, 2:42 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, David Sanders, (Mon Sep 8, 6:25 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Linus Torvalds, (Mon Sep 8, 8:09 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Ingo Molnar, (Mon Sep 8, 8:23 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 8:36 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, David Sanders, (Mon Sep 8, 8:38 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 8:38 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 8:43 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Andi Kleen, (Mon Sep 8, 8:45 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 8:50 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Andi Kleen, (Mon Sep 8, 8:50 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 8:50 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 8:54 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Andi Kleen, (Mon Sep 8, 8:57 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Linus Torvalds, (Mon Sep 8, 9:07 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 9:13 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 9:15 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Linus Torvalds, (Mon Sep 8, 9:20 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, David Sanders, (Mon Sep 8, 9:26 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 9:32 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 9:42 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Linus Torvalds, (Mon Sep 8, 9:59 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Andi Kleen, (Mon Sep 8, 10:00 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Ingo Molnar, (Mon Sep 8, 10:02 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Linus Torvalds, (Mon Sep 8, 10:04 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 10:08 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 10:12 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Andi Kleen, (Mon Sep 8, 10:18 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Linus Torvalds, (Mon Sep 8, 10:38 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, Linus Torvalds, (Mon Sep 8, 10:41 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 10:59 am)
Re: [BUG] x86 kenel won't boot under Virtual PC, H. Peter Anvin, (Mon Sep 8, 12:09 pm)
Re: [BUG] x86 kenel won't boot under Virtual PC, Linus Torvalds, (Mon Sep 8, 3:42 pm)