Commit ae1b22f6 authored by Rusty Russell's avatar Rusty Russell Committed by Ingo Molnar

x86: Side-step lguest problem by only building cmpxchg8b_emu for pre-Pentium

Commit 79e1dd05 "x86: Provide an alternative() based
cmpxchg64()" broke lguest, even on systems which have cmpxchg8b
support.  The emulation code gets used until alternatives get
run, but it contains native instructions, not their paravirt

The simplest fix is to turn this code off except for 386 and 486
Reported-by: default avatarJohannes Stezenbach <>
Signed-off-by: default avatarRusty Russell <>
Acked-by: default avatarH. Peter Anvin <>
Cc: Arjan van de Ven <>
Cc: Jeremy Fitzhardinge <>
Cc: Linus Torvalds <>
LKML-Reference: <>
Signed-off-by: default avatarIngo Molnar <>
parent 14a3f40a
......@@ -400,7 +400,7 @@ config X86_TSC
config X86_CMPXCHG64
def_bool y
depends on X86_PAE || X86_64 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MATOM
depends on !M386 && !M486
# this should be set for all -march=.. options where the compiler
# generates cmov.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment