From: "Alejandro Vallejo" <alejandro.vallejo@cloud.com>
To: "Jan Beulich" <jbeulich@suse.com>,
"Sergiy Kibrik" <sergiy_kibrik@epam.com>,
<xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>
Subject: Re: [XEN PATCH v1 1/2] x86/intel: optional build of intel.c
Date: Mon, 12 Aug 2024 13:24:10 +0100 [thread overview]
Message-ID: <D3DXIHMBKVC1.21P79JH7NMMG4@cloud.com> (raw)
In-Reply-To: <d449f8dc-2d59-4836-b26a-b29a83f7d6fb@suse.com>
On Mon Aug 12, 2024 at 10:58 AM BST, Jan Beulich wrote:
> On 12.08.2024 11:40, Sergiy Kibrik wrote:
> > 09.08.24 13:36, Alejandro Vallejo:
> >> On Fri Aug 9, 2024 at 11:09 AM BST, Sergiy Kibrik wrote:
> >>> --- a/xen/arch/x86/cpu/Makefile
> >>> +++ b/xen/arch/x86/cpu/Makefile
> >>> @@ -6,10 +6,10 @@ obj-y += amd.o
> >>> obj-y += centaur.o
> >>> obj-y += common.o
> >>> obj-y += hygon.o
> >>> -obj-y += intel.o
> >>> -obj-y += intel_cacheinfo.o
> >>> +obj-$(CONFIG_INTEL) += intel.o
> >>> +obj-$(CONFIG_INTEL) += intel_cacheinfo.o
> >>> obj-y += mwait-idle.o
> >>> -obj-y += shanghai.o
> >>> +obj-$(CONFIG_INTEL) += shanghai.o
> >>
> >> Why pick this one too? It's based on VIA IP, aiui.
> >
> > shanghai.c and intel.c both use init_intel_cacheinfo() routine, so
> > there's build dependency on Intel code.
My point is that the use of Intel functions on Shanghai and not Centaur is
accidental. If shanghai goes under Intel so should Centaur (imo).
>
> Yet Shanghai isn't as directly a clone of Intel CPUs as Hygon ones are
> for AMD. So at the very least you want to justify your choice in the
> description. After all there's also the alternative of having a separate
> SHANGHAI Kconfig setting, which would merely have "select INTEL" or
> "depends on INTEL".
>
> Jan
That's one option, another is for the Kconfig options to explicitly state which
vendors they apply to. I'd be fine with either. It's less fine for CONFIG_INTEL
to cover a VIA derivative and not the other.
Cheers,
Alejandro
next prev parent reply other threads:[~2024-08-12 12:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 10:07 [XEN PATCH v1 0/2] x86/CPU: optional build of Intel/AMD CPUs support Sergiy Kibrik
2024-08-09 10:09 ` [XEN PATCH v1 1/2] x86/intel: optional build of intel.c Sergiy Kibrik
2024-08-09 10:36 ` Alejandro Vallejo
2024-08-12 9:40 ` Sergiy Kibrik
2024-08-12 9:58 ` Jan Beulich
2024-08-12 12:24 ` Alejandro Vallejo [this message]
2024-08-12 14:14 ` Sergiy Kibrik
2024-08-13 7:40 ` Jan Beulich
2024-08-15 10:58 ` Sergiy Kibrik
2024-08-09 10:11 ` [XEN PATCH v1 2/2] x86/amd: optional build of amd.c Sergiy Kibrik
2024-08-13 7:50 ` Jan Beulich
2024-08-15 10:13 ` Sergiy Kibrik
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=D3DXIHMBKVC1.21P79JH7NMMG4@cloud.com \
--to=alejandro.vallejo@cloud.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=sergiy_kibrik@epam.com \
--cc=sstabellini@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 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.