From: Jason Andryuk <jason.andryuk@amd.com>
To: Stefano Stabellini <sstabellini@kernel.org>,
Juergen Gross <jgross@suse.com>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
"Thomas Gleixner" <tglx@kernel.org>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>, <x86@kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>,
Jason Andryuk <jandryuk@gmail.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Jason Andryuk <jason.andryuk@amd.com>,
<xen-devel@lists.xenproject.org>, <linux-kernel@vger.kernel.org>
Subject: [PATCH 2/2] xen/Kconfig: select XEN_PVHVM
Date: Wed, 5 Aug 2026 21:52:31 -0400 [thread overview]
Message-ID: <20260806015233.202486-3-jason.andryuk@amd.com> (raw)
In-Reply-To: <20260806015233.202486-1-jason.andryuk@amd.com>
XEN_PVHVM cannot be disabled as it is a hidden variable with def_bool y.
Switch XEN_PVHVM to a plain bool, and make XEN_PVH and XEN_PVHVM_GUEST
select it. It will be pulled in as needed, and drop the code from
PV-only builds.
Fixes: 34aff14580d1 ("xen: Remove Xen PVH/PVHVM dependency on PCI")
Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
---
arch/x86/xen/Kconfig | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig
index 99b06f5c47cd..7bdaa28ff232 100644
--- a/arch/x86/xen/Kconfig
+++ b/arch/x86/xen/Kconfig
@@ -51,7 +51,7 @@ config XEN_PV_DOM0
depends on XEN_PV && XEN_DOM0
config XEN_PVHVM
- def_bool y
+ bool
depends on XEN && X86_LOCAL_APIC
config XEN_PVHVM_SMP
@@ -61,13 +61,15 @@ config XEN_PVHVM_SMP
config XEN_PVHVM_GUEST
bool "Xen PVHVM guest support"
default y
- depends on XEN_PVHVM && PCI
+ depends on XEN && PCI
+ select XEN_PVHVM
help
Support running as a Xen PVHVM guest.
config XEN_PVH
bool "Xen PVH guest support"
- depends on XEN && XEN_PVHVM && ACPI
+ depends on XEN && ACPI
+ select XEN_PVHVM
select PVH
help
Support for running as a Xen PVH guest.
--
2.55.0
next prev parent reply other threads:[~2026-08-06 2:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 1:52 [PATCH 0/2] xen: Fix PV-only build Jason Andryuk
2026-08-06 1:52 ` [PATCH 1/2] xen/events: Fix xen_set_upcall_vector stub Jason Andryuk
2026-08-06 1:52 ` Jason Andryuk [this message]
2026-08-06 6:20 ` [PATCH 2/2] xen/Kconfig: select XEN_PVHVM Jan Beulich
2026-08-06 10:55 ` [PATCH 0/2] xen: Fix PV-only build Juergen Gross
2026-08-06 11:31 ` Jan Beulich
2026-08-06 12:00 ` Jürgen Groß
2026-08-06 13:24 ` Jason Andryuk
2026-08-06 13:31 ` Juergen Gross
2026-08-06 13:58 ` Jason Andryuk
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=20260806015233.202486-3-jason.andryuk@amd.com \
--to=jason.andryuk@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jandryuk@gmail.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=sstabellini@kernel.org \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox