From: Oleksii <oleksii.kurochko@gmail.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
George Dunlap <george.dunlap@citrix.com>,
Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>, Wei Liu <wl@xen.org>,
Tamas K Lengyel <tamas@tklengyel.com>,
Alexandru Isaila <aisaila@bitdefender.com>,
Petre Pircalabu <ppircalabu@bitdefender.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v1 00/29] Introduce stub headers necessary for full Xen build
Date: Fri, 22 Sep 2023 09:00:44 +0300 [thread overview]
Message-ID: <a05c39b64004398fbb42ec83a452fa7af6603f95.camel@gmail.com> (raw)
In-Reply-To: <7d59acfd-26d0-bb9b-568e-d273252d1f2c@suse.com>
On Mon, 2023-09-18 at 14:38 +0200, Jan Beulich wrote:
> On 18.09.2023 14:05, Oleksii wrote:
> > On Mon, 2023-09-18 at 11:29 +0200, Jan Beulich wrote:
> > > On 18.09.2023 10:51, Oleksii wrote:
> > > > On Thu, 2023-09-14 at 17:08 +0200, Jan Beulich wrote:
> > > > > On 14.09.2023 16:56, Oleksii Kurochko wrote:
> > > > > > Based on two patch series [1] and [2], the idea of which is
> > > > > > to
> > > > > > provide minimal
> > > > > > amount of things for a complete Xen build, a large amount
> > > > > > of
> > > > > > headers are the same
> > > > > > or almost the same, so it makes sense to move them to asm-
> > > > > > generic.
> > > > > >
> > > > > > Also, providing such stub headers should help future
> > > > > > architectures
> > > > > > to add
> > > > > > a full Xen build.
> > > > > >
> > > > > > [1]
> > > > > > https://lore.kernel.org/xen-devel/cover.1694543103.git.sanastasio@raptorengineering.com/
> > > > > > [2]
> > > > > > https://lore.kernel.org/xen-devel/cover.1692181079.git.oleksii.kurochko@gmail.com/
> > > > > >
> > > > > > Oleksii Kurochko (29):
> > > > > > xen/asm-generic: introduce stub header spinlock.h
> > > > >
> > > > > At the example of this, personally I think this goes too far.
> > > > > Headers
> > > > > in
> > > > > asm-generic should be for the case where an arch elects to
> > > > > not
> > > > > implement
> > > > > certain functionality. Clearly spinlocks are required
> > > > > uniformly.
> > > > It makes sense. Then I will back to the option [2] where I
> > > > introduced
> > > > all this headers as part of RISC-V architecture.
> > >
> > > You did see though that in a reply to my own mail I said I take
> > > back
> > > the
> > > comment, at least as far as this header (and perhaps several
> > > others)
> > > are
> > > concerned.
> > >
> > I missed that comment on the patch about spinlock.
> >
> > Well, then, I don't fully understand the criteria.
> >
> > What about empty headers or temporary empty headers?
> >
> > For example, asm/xenoprof.h is empty for all arches except x86, so
> > it
> > is a good candidate for asm-generic.
>
> That's an example where I think it is wrong (or at least unnecessary)
> for
> the xen/ header to include the asm/ one irrespective of the
> controlling
> CONFIG_* setting. From what I can tell common code would build fine
> with
> the #include moved; x86 code may require an adjustment or two. IOW
> this
> is a case where I think preferably presence of an arch header was
> required only when XENOPROF can actually be yet to y in Kconfig.
>
> > But asm/grant_table.h is empty for PPC and RISC-V for now but won't
> > be
> > empty in the future. Does it make sense to put them to asm-generic?
> > The
> > only benefit I see is that in future architecture if they follow
> > the
> > same way of adding support for the arch to Xen, they will face the
> > same
> > issue: building full Xen requires this empty header.
>
> Here I can see different ways of looking at it. Personally I'd prefer
> stub headers to be used only if, for the foreseeable future, they are
> intended to remain in use. grant_table.h pretty clearly doesn't fall
> in
> this category. (You may want to peek at what's being done on the PPC
> side. Nevertheless some of what's done there could likely benefit
> from
> what you're doing here.)
>
> > So, should I wait for some time on other patches of the patch
> > series?
>
> Well, afaic I'd prefer if I got a chance to look over at least some
> more
> of the patches in this series. But you're of course free to submit a
> v2
> at any time.
I think that it will be better to wait for some time not to produce
unnecessary patches.
~ Oleksii
next prev parent reply other threads:[~2023-09-22 6:01 UTC|newest]
Thread overview: 112+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 14:56 [PATCH v1 00/29] Introduce stub headers necessary for full Xen build Oleksii Kurochko
2023-09-14 14:56 ` [PATCH v1 01/29] xen/asm-generic: introduce stub header spinlock.h Oleksii Kurochko
2023-09-14 15:35 ` Jan Beulich
2023-09-18 8:43 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 02/29] xen/asm-generic: introduce stub header paging.h Oleksii Kurochko
2023-10-19 9:05 ` Jan Beulich
2023-10-19 10:35 ` Julien Grall
2023-10-19 10:49 ` Jan Beulich
2023-10-23 9:35 ` Oleksii
2023-10-23 10:15 ` Jan Beulich
2023-10-23 9:40 ` Oleksii
2023-10-23 10:29 ` Jan Beulich
2023-09-14 14:56 ` [PATCH v1 03/29] xen/asm-generic: introduce stub header cpufeature.h Oleksii Kurochko
2023-10-19 9:11 ` Jan Beulich
2023-10-23 9:49 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 04/29] xen/asm-generic: introduce stub header device.h Oleksii Kurochko
2023-10-19 9:14 ` Jan Beulich
2023-10-19 10:42 ` Julien Grall
2023-10-19 10:53 ` Jan Beulich
2023-10-19 10:57 ` Julien Grall
2023-10-19 11:01 ` Jan Beulich
2023-10-19 11:07 ` Julien Grall
2023-10-19 11:14 ` Jan Beulich
2023-10-19 11:27 ` Julien Grall
2023-10-19 11:41 ` Jan Beulich
2023-10-19 12:12 ` Julien Grall
2023-10-23 10:17 ` Oleksii
2023-10-23 10:33 ` Jan Beulich
2023-10-24 13:01 ` Julien Grall
2023-10-23 10:12 ` Oleksii
2023-10-23 10:35 ` Jan Beulich
2023-10-25 8:23 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 05/29] xen/asm-generic: introduce stub header event.h Oleksii Kurochko
2023-10-19 9:18 ` Jan Beulich
2023-10-23 10:23 ` Oleksii
2023-10-23 10:40 ` Jan Beulich
2023-09-14 14:56 ` [PATCH v1 06/29] xen/asm-generic: introduce stub header grant_table.h Oleksii Kurochko
2023-10-19 9:19 ` Jan Beulich
2023-10-23 10:32 ` Oleksii
2023-10-23 10:45 ` Jan Beulich
2023-09-14 14:56 ` [PATCH v1 07/29] xen/asm-generic: introduce stub header guest_atomics.h Oleksii Kurochko
2023-09-14 14:56 ` [PATCH v1 08/29] xen/asm-generic: introduce stub hypercall.h Oleksii Kurochko
2023-10-19 9:24 ` Jan Beulich
2023-10-23 10:34 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 09/29] xen/asm-generic: introduce stub header iocap.h Oleksii Kurochko
2023-10-19 9:25 ` Jan Beulich
2023-10-23 10:37 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 10/29] xen/asm-generic: introduce stub header iommu.h Oleksii Kurochko
2023-10-19 9:44 ` Jan Beulich
2023-10-23 10:43 ` Oleksii
2023-10-23 10:47 ` Jan Beulich
2023-10-24 12:46 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 11/29] xen/asm-generic: introduce stub header mem_access.h Oleksii Kurochko
2023-10-19 9:51 ` Jan Beulich
2023-10-23 10:45 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 12/29] xen/asm-generic: introduce stub header pci.h Oleksii Kurochko
2023-10-19 9:55 ` Jan Beulich
2023-10-23 10:50 ` Oleksii
2023-10-23 11:58 ` Jan Beulich
2023-10-24 12:38 ` Oleksii
2023-10-30 16:34 ` Oleksii
2023-10-30 16:43 ` Jan Beulich
2023-10-31 12:44 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 13/29] xen/asm-generic: introduce stub header random.h Oleksii Kurochko
2023-09-14 14:56 ` [PATCH v1 14/29] xen/asm-generic: introduce stub header setup.h Oleksii Kurochko
2023-09-14 14:56 ` [PATCH v1 15/29] xen/asm-generic: introduce stub header xenoprof.h Oleksii Kurochko
2023-10-19 10:09 ` Jan Beulich
2023-10-23 11:17 ` Oleksii
2023-10-23 12:00 ` Jan Beulich
2023-09-14 14:56 ` [PATCH v1 16/29] xen/asm-generic: introduce stub header flushtlb.h Oleksii Kurochko
2023-09-15 5:15 ` Jiamei Xie
2023-09-18 8:44 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 17/29] xen/asm-generic: introduce stub header percpu.h Oleksii Kurochko
2023-10-19 10:39 ` Jan Beulich
2023-10-23 11:17 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 18/29] xen/asm-generic: introduce stub header smp.h Oleksii Kurochko
2023-10-19 10:58 ` Jan Beulich
2023-10-23 11:28 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 19/29] xen/asm-generic: introduce stub header hardirq.h Oleksii Kurochko
2023-10-19 11:04 ` Jan Beulich
2023-10-23 11:29 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 20/29] xen/asm-generic: introduce stub header div64.h Oleksii Kurochko
2023-10-19 11:12 ` Jan Beulich
2023-10-23 11:32 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 21/29] xen/asm-generic: introduce stub header altp2m.h Oleksii Kurochko
2023-10-19 11:27 ` Jan Beulich
2023-10-23 11:34 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 22/29] xen/asm-generic: introduce stub header delay.h Oleksii Kurochko
2023-10-19 11:30 ` Jan Beulich
2023-10-23 11:35 ` Oleksii
2023-10-31 14:30 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 23/29] xen/asm-generic: introduce stub header domain.h Oleksii Kurochko
2023-09-14 14:56 ` [PATCH v1 24/29] xen/asm-generic: introduce stub header guest_access.h Oleksii Kurochko
2023-09-14 14:56 ` [PATCH v1 25/29] xen/asm-generic: introduce stub header irq.h Oleksii Kurochko
2023-10-19 11:34 ` Jan Beulich
2023-09-14 14:56 ` [PATCH v1 26/29] xen/asm-generic: introduce stub header monitor.h Oleksii Kurochko
2023-10-19 11:35 ` Jan Beulich
2023-10-23 11:37 ` Oleksii
2023-09-14 14:56 ` [PATCH v1 27/29] xen/asm-generic: introduce stub header numa.h Oleksii Kurochko
2023-10-19 11:45 ` Jan Beulich
2023-09-14 14:56 ` [PATCH v1 28/29] xen/asm-generic: introduce stub header p2m.h Oleksii Kurochko
2023-09-14 14:56 ` [PATCH v1 29/29] xen/asm-generic: introduce stub header softirq.h Oleksii Kurochko
2023-09-14 15:08 ` [PATCH v1 00/29] Introduce stub headers necessary for full Xen build Jan Beulich
2023-09-18 8:51 ` Oleksii
2023-09-18 8:53 ` Oleksii
2023-09-18 9:29 ` Jan Beulich
2023-09-18 9:32 ` Julien Grall
2023-09-18 9:34 ` Jan Beulich
2023-09-18 12:05 ` Oleksii
2023-09-18 12:38 ` Jan Beulich
2023-09-22 6:00 ` Oleksii [this message]
2023-10-23 9:42 ` Oleksii
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=a05c39b64004398fbb42ec83a452fa7af6603f95.camel@gmail.com \
--to=oleksii.kurochko@gmail.com \
--cc=aisaila@bitdefender.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=ppircalabu@bitdefender.com \
--cc=sstabellini@kernel.org \
--cc=tamas@tklengyel.com \
--cc=wl@xen.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.