From: Zhenzhong Duan <zhenzhong.duan@oracle.com>
To: <linux-kernel@vger.kernel.org>
Cc: <mingo@redhat.com>, <tglx@linutronix.de>, <dwmw@amazon.co.uk>,
<srinivas.eeda@oracle.com>, <yamada.masahiro@socionext.com>,
<peterz@infradead.org>
Subject: [PATCH v3 0/2] Enable retpoline support only when compiler support
Date: Fri, 2 Nov 2018 01:45:40 -0700 (PDT) [thread overview]
Message-ID: <7ba46cbd-826d-459b-98d4-b9f4e08dbcda@default> (raw)
According to PeterZ's suggestion in https://lkml.org/lkml/2018/9/18/1016,
hard bind retpoline with compiler support and remove minimal stuff.
Tested with both CONFIG_RETPOLINE enabled and disabled.
-v3:
Add Suggested-by[Ingo]
Break build if compiler doesn't support retpoline[Dwmw,Tglx,Ingo]
-v2:
Add compiler support check in Kconfig [Masahiro]
Drop 3rd patch as __insn_is_indirect_jump() may be used in some corner case.[PeterZ]
Zhenzhong Duan (2):
retpolines: Only enable retpoline when compiler support it
retpolines: Remove the minimal stuff of retpoline support
arch/x86/Kconfig | 4 ----
arch/x86/Makefile | 5 +++--
arch/x86/include/asm/nospec-branch.h | 12 ++++++------
arch/x86/kernel/cpu/bugs.c | 13 ++-----------
scripts/Makefile.build | 2 --
5 files changed, 11 insertions(+), 25 deletions(-)
--
1.8.3.1
reply other threads:[~2018-11-02 8:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ba46cbd-826d-459b-98d4-b9f4e08dbcda@default \
--to=zhenzhong.duan@oracle.com \
--cc=dwmw@amazon.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=srinivas.eeda@oracle.com \
--cc=tglx@linutronix.de \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®