All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Merritt <alexander@edera.dev>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: xen-devel@lists.xenproject.org, "Jan Beulich" <jbeulich@suse.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH] x86: drop XSAVEOPT and CLWB build flags
Date: Thu, 03 Apr 2025 19:45:42 -0400	[thread overview]
Message-ID: <da37364213f4cec576400ce089e02a8e@edera.dev> (raw)
In-Reply-To: <c07ec835-3c69-4cf9-ba6a-39d6152393bf@citrix.com>

On 2025-04-03 19:28, Andrew Cooper wrote:
> On 04/04/2025 12:22 am, Alexander M. Merritt wrote:
>> The new toolchain baseline knows both the XSAVEOPT and CLWB 
>> instructions.
> 
> I know that's what I wrote on the ticket, but what I'd forgotten was
> that we only use XSAVEOPT for it's operand.
> 
> Really what we're doing here is knowing CLWB, and also getting rid of
> the XSAVEOPT workaround for somewhat-more-old toolchains.

Will try to be more detailed in the commit message next time, thanks for 
pointing out.

>> +        asm volatile ("clwb %[p]" :: [p] "m" (*(const char 
>> *)(addr)));
> 
> One minor note about whitespace.  We typically have spaces inside the
> outermost brackets on asm statements, as per the clwb() example below.

Makes sense. I had searched for existing examples of this and saw a mix 
with and without spaces.

> Also, given the expression is so simple, I'd just use %0 and drop the
> [p].  It's just line-verbosity here.

Yes, agreed.

> Can fix both on commit if you're happy.
> 
> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>

Yes please do. Thanks for the review!


  parent reply	other threads:[~2025-04-03 23:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-03 23:22 [PATCH] x86: drop XSAVEOPT and CLWB build flags Alexander M. Merritt
2025-04-03 23:28 ` Andrew Cooper
2025-04-03 23:34   ` Andrew Cooper
2025-04-04 13:39     ` Alexander Merritt
2025-04-03 23:45   ` Alexander Merritt [this message]
2025-04-04  7:21 ` Jan Beulich
2025-04-04 10:13   ` Andrew Cooper

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=da37364213f4cec576400ce089e02a8e@edera.dev \
    --to=alexander@edera.dev \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=roger.pau@citrix.com \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.