x86/speculation: Create spec-ctrl.h to avoid include hell
Having everything in nospec-branch.h creates a hell of dependencies when adding the prctl based switching mechanism. Move everything which is not required in nospec-branch.h to spec-ctrl.h and fix up the includes in the relevant files. Signed-off-by:Thomas Gleixner <tglx@linutronix.de> Reviewed-by:
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by:
Ingo Molnar <mingo@kernel.org>
Showing
- arch/x86/include/asm/nospec-branch.h 0 additions, 14 deletionsarch/x86/include/asm/nospec-branch.h
- arch/x86/include/asm/spec-ctrl.h 21 additions, 0 deletionsarch/x86/include/asm/spec-ctrl.h
- arch/x86/kernel/cpu/amd.c 1 addition, 1 deletionarch/x86/kernel/cpu/amd.c
- arch/x86/kernel/cpu/bugs.c 1 addition, 1 deletionarch/x86/kernel/cpu/bugs.c
- arch/x86/kvm/svm.c 1 addition, 1 deletionarch/x86/kvm/svm.c
- arch/x86/kvm/vmx.c 1 addition, 1 deletionarch/x86/kvm/vmx.c
Loading
Please register or sign in to comment