The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, kees@kernel.org, alyssa.milburn@intel.com,
	scott.d.constable@intel.com, joao@overdrivepizza.com,
	samitolvanen@google.com, nathan@kernel.org,
	alexei.starovoitov@gmail.com, mhiramat@kernel.org,
	ojeda@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH] x86,ibt: Use UDB instead of 0xEA
Date: Fri, 15 Aug 2025 12:19:31 +0100	[thread overview]
Message-ID: <055f4c2b-0e7f-44ae-92ff-a1025a217208@citrix.com> (raw)
In-Reply-To: <20250815105908.GB3245006@noisy.programming.kicks-ass.net>

On 15/08/2025 11:59 am, Peter Zijlstra wrote:
> On Fri, Aug 15, 2025 at 11:43:11AM +0100, Andrew Cooper wrote:
>
>>>> I've had to use cs prefixed jcc.d32, because our older toolchains don't
>>>> like the ,pn notation.
>>> And then I forgot to move that cs prefix around in the bhi1 case...
>>> fixed that.
>> Dare I ask what ,pn notation is?  It's not only the older toolchains
>> that don't know it :)
> Some fancy notation for the CS/DS branch hints.
>
> CS Jcc, decodes to Jcc,pn for non-taken
> DS Jcc, decodes to Jcc,pt for taken

Ah, thanks.  I was looking at the hex in one of the comments and still
couldn't figure it out.

So with this notation, we also have the dual meaning of ,pt between the
P4 and LNC.  At least the encoding is the same.

~Andrew

  reply	other threads:[~2025-08-15 11:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-14 11:17 [RFC][PATCH] x86,ibt: Use UDB instead of 0xEA Peter Zijlstra
2025-08-14 11:23 ` Peter Zijlstra
2025-08-14 19:40 ` Nathan Chancellor
2025-08-15  1:27 ` H. Peter Anvin
2025-08-15  7:49   ` Peter Zijlstra
2025-08-15 10:28     ` Peter Zijlstra
2025-08-15 10:30       ` Peter Zijlstra
2025-08-15 10:43         ` Andrew Cooper
2025-08-15 10:59           ` Peter Zijlstra
2025-08-15 11:19             ` Andrew Cooper [this message]
2025-08-15 17:14               ` H. Peter Anvin
2025-08-15 17:21                 ` Andrew Cooper
2025-08-15 17:28                   ` H. Peter Anvin
2025-08-15  5:42 ` Alexei Starovoitov
2025-08-15  7:57   ` Peter Zijlstra
2025-08-15  8:28     ` Leon Hwang

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=055f4c2b-0e7f-44ae-92ff-a1025a217208@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=alyssa.milburn@intel.com \
    --cc=hpa@zytor.com \
    --cc=joao@overdrivepizza.com \
    --cc=kees@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=nathan@kernel.org \
    --cc=ojeda@kernel.org \
    --cc=peterz@infradead.org \
    --cc=samitolvanen@google.com \
    --cc=scott.d.constable@intel.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