Skip to content

Commit

Permalink
Revert "x86: Side-step lguest problem by only building cmpxchg8b_emu …
Browse files Browse the repository at this point in the history
…for pre-Pentium"

This reverts commit ae1b22f.

As Linus said in 982d007: "There was something really messy about
cmpxchg8b and clone CPU's, so if you enable it on other CPUs later, do it
carefully."

This breaks lguest for those configs, but we can fix that by emulating
if we have to.

Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=14884
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
LKML-Reference: <201001051248.49700.rusty@rustcorp.com.au>
Cc: stable@kernel.org
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
Rusty Russell authored and H. Peter Anvin committed Jan 5, 2010
1 parent a557aae commit f4b825b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/Kconfig.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ config X86_TSC

config X86_CMPXCHG64
def_bool y
depends on !M386 && !M486
depends on X86_PAE || X86_64 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MATOM

# this should be set for all -march=.. options where the compiler
# generates cmov.
Expand Down

0 comments on commit f4b825b

Please sign in to comment.