All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <jbeulich@suse.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Teddy Astie" <teddy.astie@vates.tech>,
	"Roger Pau Monné" <roger@xenproject.org>
Subject: Re: [PATCH] x86emul: ignore XOP.W for TBM insns in 32-bit mode
Date: Tue, 24 Nov 2026 16:50:57 +0000	[thread overview]
Message-ID: <2ffee613-bcb0-4039-aae2-b920aa359ae2@citrix.com> (raw)
In-Reply-To: <b95feaa6-2e17-4999-8218-60e1c742eb70@suse.com>

On 24/11/2026 1:32 pm, Jan Beulich wrote:
> Quoting 1179d51dcb7d ("x86emul: ignore VEX.W for BMI{1,2} insns in 32-bit
> mode"):
> "While result values and other status flags are unaffected as long as we
>  can ignore the case of registers having their upper 32 bits non-zero
>  outside of 64-bit mode, EFLAGS.SF may obtain a wrong value when we
>  mistakenly re-execute the original insn with VEX.W set.
>
>  Note that guest the memory access, if any, is correctly carried out as
>  32-bit regardless of VEX.W. The emulator-local memory operand will be
>  accessed as a 64-bit quantity, but it is pre-initialised to zero so no
>  internal state can leak."
>
> The same applies to XOP-encoded integer insns.
>
> Fixes: c4afd683f95c ("x86emul: support TBM insns")
> Reported-by: Roger Pau Monné <roger.pau@amd.com>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>


      reply	other threads:[~2026-11-24 16:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 13:32 [PATCH] x86emul: ignore XOP.W for TBM insns in 32-bit mode Jan Beulich
2026-11-24 16:50 ` Andrew Cooper [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=2ffee613-bcb0-4039-aae2-b920aa359ae2@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=roger@xenproject.org \
    --cc=teddy.astie@vates.tech \
    --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.