All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Jiaqing Zhao <Zhao.Jiaqing@amd.com>
Cc: "Teddy Astie" <teddy.astie@vates.tech>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Roger Pau Monné" <roger@xenproject.org>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH] x86/cpuid: gate the hypervisor PV-only leaf on is_pv_domain()
Date: Wed, 26 Aug 2026 11:42:06 +0200	[thread overview]
Message-ID: <2aa33f72-8577-4eed-98d2-099b0ced2cb7@suse.com> (raw)
In-Reply-To: <20260826072526.767424-1-Zhao.Jiaqing@amd.com>

On 26.08.2026 09:25, Jiaqing Zhao wrote:
> Hypervisor leaf 5 is PV-specific, but is gated with !is_hvm_domain(),
> which stays a runtime test in a build without PV support. Test for a
> PV domain directly so the compiler can discard the leaf when
> CONFIG_PV is disabled.
> 
> Suggested-by: Roger Pau Monné <roger@xenproject.org>
> Signed-off-by: Jiaqing Zhao <Zhao.Jiaqing@amd.com>

Reviewed-by: Jan Beulich <jbeulich@suse.com>



  reply	other threads:[~2026-08-26  9:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-26  7:25 [PATCH] x86/cpuid: gate the hypervisor PV-only leaf on is_pv_domain() Jiaqing Zhao
2026-08-26  9:42 ` Jan Beulich [this message]
2026-08-28  9:41 ` Roger Pau Monné

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=2aa33f72-8577-4eed-98d2-099b0ced2cb7@suse.com \
    --to=jbeulich@suse.com \
    --cc=Zhao.Jiaqing@amd.com \
    --cc=andrew.cooper3@citrix.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.