The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	linux-kernel@vger.kernel.org, x86@kernel.org
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH 2/4] xen: Drop CONFIG_XEN_PVHVM
Date: Wed, 5 Aug 2026 10:36:32 +0200	[thread overview]
Message-ID: <15824536-dff6-426d-b54c-6a1f362adaa2@suse.com> (raw)
In-Reply-To: <7179e004-76df-42be-94fd-f314614e65cd@citrix.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1481 bytes --]

On 05.08.26 10:28, Andrew Cooper wrote:
> On 05/08/2026 9:21 am, Juergen Gross wrote:
>> On x86 CONFIG_XEN_PVHVM is now a synonym of CONFIG_XEN.
>>
>> In Xen specific x86 code it can be just dropped, in non-Xen specific
>> x86 code it can be replaced with CONFIG_XEN.
>>
>> In architecture independent code it is used only where CONFIG_XEN is
>> defined, so it can be replaced with CONFIG_X86 there.
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>>
>> diff --git a/arch/x86/include/asm/idtentry.h b/arch/x86/include/asm/idtentry.h
>> index 20f548702404..f400cfac69a6 100644
>> --- a/arch/x86/include/asm/idtentry.h
>> +++ b/arch/x86/include/asm/idtentry.h
>> @@ -745,7 +745,7 @@ DECLARE_IDTENTRY_SYSVEC(HYPERV_STIMER0_VECTOR,		sysvec_hyperv_stimer0);
>>   DECLARE_IDTENTRY_SYSVEC(HYPERVISOR_CALLBACK_VECTOR,	sysvec_acrn_hv_callback);
>>   #endif
>>   
>> -#ifdef CONFIG_XEN_PVHVM
>> +#ifdef CONFIG_XEN
>>   DECLARE_IDTENTRY_SYSVEC(HYPERVISOR_CALLBACK_VECTOR,	sysvec_xen_hvm_callback);
>>   #endif
> 
> I'm very happy to see a reduction in the number of Kconfig symbols for
> Xen (there are definitely too many), but this looks wonky.
> 
> Or are you saying that there really is no way to build a Xen PV guest
> excluding the HVM-only bits?

Seems so, yes.

This has been like this for at least several years now.

What you can do is to configure the kernel to exclude the Xen platform PCI
device (CONFIG_XEN_PVHVM_GUEST=n).


Juergen

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

  reply	other threads:[~2026-08-05  8:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-05  8:21 [PATCH 0/4] xen: cleanup config files Juergen Gross
2026-08-05  8:21 ` [PATCH 1/4] x86/xen: Remove redundant config dependency on X86_LOCAL_APIC Juergen Gross
2026-08-05  8:37   ` Jan Beulich
2026-08-05  8:40     ` Jan Beulich
2026-08-05  8:43       ` Andrew Cooper
2026-08-05 22:30   ` Stefano Stabellini
2026-08-05  8:21 ` [PATCH 2/4] xen: Drop CONFIG_XEN_PVHVM Juergen Gross
2026-08-05  8:28   ` Andrew Cooper
2026-08-05  8:36     ` Juergen Gross [this message]
2026-08-06  1:51       ` Jason Andryuk
2026-08-05 22:45   ` Stefano Stabellini
2026-08-05  8:21 ` [PATCH 3/4] xen: Drop CONFIG_XEN_AUTO_XLATE Juergen Gross
2026-08-05  8:42   ` Jan Beulich
2026-08-05  8:56     ` Juergen Gross
2026-08-05 22:47   ` Stefano Stabellini
2026-08-05  8:21 ` [PATCH 4/4] x86/xen: Drop CONFIG_XEN_PVHVM_SMP Juergen Gross
2026-08-05  8:44   ` Jan Beulich
2026-08-05  8:55     ` Juergen Gross
2026-08-05  9:04       ` Jan Beulich
2026-08-05  9:44         ` Jürgen Groß
2026-08-05  9:55           ` Jan Beulich
2026-08-05 22:49   ` Stefano Stabellini

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=15824536-dff6-426d-b54c-6a1f362adaa2@suse.com \
    --to=jgross@suse.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=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=oleksandr_tyshchenko@epam.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