From: Thomas Gleixner <tglx@linutronix.de>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Dave Hansen <dave.hansen@intel.com>
Subject: Re: [PATCH 3/3] x86/asm: Add support for WBNOINVD instruction
Date: Thu, 15 Mar 2018 10:21:40 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.21.1803151017120.1525@nanos.tec.linutronix.de> (raw)
In-Reply-To: <20180119121821.77018-4-kirill.shutemov@linux.intel.com>
On Fri, 19 Jan 2018, Kirill A. Shutemov wrote:
> This patch implements infrastructure to call WBNOINVD instruction.
grep 'This patch' Documentation/process/
> The basic idea is to match what we have for WBINVD.
Is it just an idea or is it actually doing it?
> The instruction is defined as WBINVD with REP (0xf3) prefix. If the
> machine doesn't support the instruction the prefix will be ignored and
> we would fallback to WBINVD.
We fallback? We do nothing.
The CPU ignores the prefix and falls back to WBINVD, right?
> +
> +#define wbnoinvd_on_cpu(cpu) wbnoinvd()
> +static inline int wbnoinvd_on_all_cpus(void)
Bah. Please stop glueing defines in front of the function body. That's just
makes it harder to read.
Thanks,
tglx
prev parent reply other threads:[~2018-03-15 9:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 12:18 [PATCH 0/3] Drop pv_cpu_ops::wbinvd() and bring support of WBNOINVD Kirill A. Shutemov
2018-01-19 12:18 ` [PATCH 1/3] x86/paravirt: Drop pv_cpu_ops::wbinvd() Kirill A. Shutemov
2018-01-19 12:18 ` [PATCH 2/3] x86/cpufeatures: Add WBNOINVD cpufeature Kirill A. Shutemov
2018-03-15 9:17 ` Thomas Gleixner
2018-01-19 12:18 ` [PATCH 3/3] x86/asm: Add support for WBNOINVD instruction Kirill A. Shutemov
2018-03-15 9:21 ` Thomas Gleixner [this message]
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=alpine.DEB.2.21.1803151017120.1525@nanos.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=dave.hansen@intel.com \
--cc=hpa@zytor.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=x86@kernel.org \
/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®