xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Oleksii Kurochko <oleksii.kurochko@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: Oleksii Kurochko <oleksii.kurochko@gmail.com>,
	Doug Goldstein <cardoe@cardoe.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Alistair Francis <alistair.francis@wdc.com>,
	Bob Eshleman <bobbyeshleman@gmail.com>,
	Connor Davis <connojdavis@gmail.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>,
	Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>,
	Wei Liu <wl@xen.org>
Subject: [PATCH v2 00/39] Enable build of full Xen for RISC-V
Date: Fri, 24 Nov 2023 12:30:20 +0200	[thread overview]
Message-ID: <cover.1700761381.git.oleksii.kurochko@gmail.com> (raw)

This patch series performs all of the additions necessary to drop the
build overrides for RISCV and enable the full Xen build. Except in cases
where compatibile implementations already exist (e.g. atomic.h and
bitops.h), the newly added definitions are simple.

The patch series is based on the following patch series:
- [PATCH v2] xen: remove <asm/delay.h> [1]
- [PATCH v3 00/14] Introduce generic headers [2]

[1] https://lore.kernel.org/xen-devel/3d55bce44bd6ab9973cbe0ea2fc136cc44d35df2.1698759633.git.oleksii.kurochko@gmail.com/
[2] https://lore.kernel.org/xen-devel/cover.1700221559.git.oleksii.kurochko@gmail.com/

---
Changes in V2:
  - Drop the following patches as they are the part of [2]:
      [PATCH v1 06/57] xen/riscv: introduce paging.h
      [PATCH v1 08/57] xen/riscv: introduce asm/device.h
      [PATCH v1 10/57] xen/riscv: introduce asm/grant_table.h
      [PATCH v1 12/57] xen/riscv: introduce asm/hypercall.h
      [PATCH v1 13/57] xen/riscv: introduce asm/iocap.h
      [PATCH v1 15/57] xen/riscv: introduce asm/mem_access.h
      [PATCH v1 18/57] xen/riscv: introduce asm/random.h
      [PATCH v1 21/57] xen/riscv: introduce asm/xenoprof.h
      [PATCH v1 24/57] xen/riscv: introduce asm/percpu.h
      [PATCH v1 29/57] xen/riscv: introduce asm/hardirq.h
      [PATCH v1 33/57] xen/riscv: introduce asm/altp2m.h
      [PATCH v1 38/57] xen/riscv: introduce asm/monitor.h
      [PATCH v1 39/57] xen/riscv: introduce asm/numa.h
      [PATCH v1 42/57] xen/riscv: introduce asm/softirq.h
  - xen/lib.h in most of the cases were changed to xen/bug.h as
    mostly functionilty of bug.h is used.
  - align arch-riscv.h with Arm's version of it.
  - change the Author of commit with introduction of asm/atomic.h.
  - update some definition from spinlock.h.
  - code style changes.
---

Bobby Eshleman (1):
  xen/riscv: introduce asm/atomic.h

Oleksii Kurochko (38):
  xen/riscv: disable unnecessary configs
  xen/riscv: use some asm-generic headers
  xen/riscv:introduce asm/byteorder.h
  xen/riscv: add public arch-riscv.h
  xen/riscv: introduce spinlock.h
  xen/riscv: introduce fence.h
  xen/riscv: introduce arch-riscv/hvm/save.h
  xen/riscv: introduce asm/cpufeature.h
  xen/riscv: introduce asm/guest_atomics.h
  xen/riscv: introduce asm/iommu.h
  xen/riscv: introduce asm/nospec.h
  xen/riscv: introduce asm/setup.h
  xen/riscv: introduce asm/system.h
  xen/riscv: introduce bitops.h
  xen/riscv: introduce flushtlb.h
  xen/riscv: introduce asm/smp.h
  xen/riscv: introduce cmpxchg.h
  xen/riscv: introduce asm/io.h
  xen/riscv: define bug frame tables in xen.lds.S
  xen/riscv: introduce bit operations
  xen/riscv: introduce asm/domain.h
  xen/riscv: introduce asm/guest_access.h
  xen/riscv: introduce asm/irq.h
  xen/riscv: introduce asm/p2m.h
  xen/riscv: introduce asm/regs.h
  xen/riscv: introduce asm/time.h
  xen/riscv: introduce asm/event.h
  xen/riscv: add definition of __read_mostly
  xen/riscv: define an address of frame table
  xen/riscv: add required things to asm/current.h
  xen/riscv: add minimal stuff to asm/page.h to build full Xen
  xen/riscv: add minimal stuff to asm/processor.h to build full Xen
  xen: add RISCV support for pmu.h
  xen: add necessary headers to common to build full Xen for RISC-V
  xen/riscv: add minimal stuff to asm/mm.h to build full Xen
  xen/rirscv: add minimal amount of stubs to build full Xen
  xen/riscv: enable full Xen build
  xen: fix compilation issue of serial.c

 automation/gitlab-ci/build.yaml            | 122 ++++++
 automation/scripts/build                   |   4 +-
 xen/arch/riscv/Makefile                    |  18 +-
 xen/arch/riscv/arch.mk                     |   4 -
 xen/arch/riscv/configs/tiny64_defconfig    |  19 +-
 xen/arch/riscv/early_printk.c              | 168 --------
 xen/arch/riscv/include/asm/Makefile        |  14 +
 xen/arch/riscv/include/asm/atomic.h        | 375 ++++++++++++++++++
 xen/arch/riscv/include/asm/bitops.h        | 288 ++++++++++++++
 xen/arch/riscv/include/asm/byteorder.h     |  16 +
 xen/arch/riscv/include/asm/cache.h         |   2 +
 xen/arch/riscv/include/asm/cmpxchg.h       | 379 ++++++++++++++++++
 xen/arch/riscv/include/asm/config.h        |  21 +
 xen/arch/riscv/include/asm/cpufeature.h    |  22 ++
 xen/arch/riscv/include/asm/current.h       |  20 +
 xen/arch/riscv/include/asm/domain.h        |  43 +++
 xen/arch/riscv/include/asm/event.h         |  34 ++
 xen/arch/riscv/include/asm/fence.h         |  12 +
 xen/arch/riscv/include/asm/flushtlb.h      |  31 ++
 xen/arch/riscv/include/asm/guest_access.h  |  29 ++
 xen/arch/riscv/include/asm/guest_atomics.h |  48 +++
 xen/arch/riscv/include/asm/io.h            | 134 +++++++
 xen/arch/riscv/include/asm/iommu.h         |   7 +
 xen/arch/riscv/include/asm/irq.h           |  37 ++
 xen/arch/riscv/include/asm/mm.h            | 270 ++++++++++++-
 xen/arch/riscv/include/asm/nospec.h        |  25 ++
 xen/arch/riscv/include/asm/p2m.h           | 105 +++++
 xen/arch/riscv/include/asm/page.h          |  21 +
 xen/arch/riscv/include/asm/processor.h     |  15 +
 xen/arch/riscv/include/asm/regs.h          |  26 ++
 xen/arch/riscv/include/asm/setup.h         |   6 +
 xen/arch/riscv/include/asm/smp.h           |  23 ++
 xen/arch/riscv/include/asm/spinlock.h      |  15 +
 xen/arch/riscv/include/asm/system.h        |  79 ++++
 xen/arch/riscv/include/asm/time.h          |  19 +
 xen/arch/riscv/lib/Makefile                |   1 +
 xen/arch/riscv/lib/find_next_bit.c         | 278 ++++++++++++++
 xen/arch/riscv/mm.c                        |  52 ++-
 xen/arch/riscv/setup.c                     |   9 +-
 xen/arch/riscv/stubs.c                     | 426 +++++++++++++++++++++
 xen/arch/riscv/traps.c                     |  25 ++
 xen/arch/riscv/xen.lds.S                   |  10 +
 xen/drivers/char/serial.c                  |   2 +
 xen/include/public/arch-riscv.h            |  93 +++++
 xen/include/public/arch-riscv/hvm/save.h   |  20 +
 xen/include/public/hvm/save.h              |   2 +
 xen/include/public/pmu.h                   |   2 +
 xen/include/public/xen.h                   |   2 +
 xen/include/xen/domain.h                   |   1 +
 49 files changed, 3194 insertions(+), 180 deletions(-)
 create mode 100644 xen/arch/riscv/include/asm/Makefile
 create mode 100644 xen/arch/riscv/include/asm/atomic.h
 create mode 100644 xen/arch/riscv/include/asm/bitops.h
 create mode 100644 xen/arch/riscv/include/asm/byteorder.h
 create mode 100644 xen/arch/riscv/include/asm/cmpxchg.h
 create mode 100644 xen/arch/riscv/include/asm/cpufeature.h
 create mode 100644 xen/arch/riscv/include/asm/domain.h
 create mode 100644 xen/arch/riscv/include/asm/event.h
 create mode 100644 xen/arch/riscv/include/asm/fence.h
 create mode 100644 xen/arch/riscv/include/asm/flushtlb.h
 create mode 100644 xen/arch/riscv/include/asm/guest_access.h
 create mode 100644 xen/arch/riscv/include/asm/guest_atomics.h
 create mode 100644 xen/arch/riscv/include/asm/io.h
 create mode 100644 xen/arch/riscv/include/asm/iommu.h
 create mode 100644 xen/arch/riscv/include/asm/irq.h
 create mode 100644 xen/arch/riscv/include/asm/nospec.h
 create mode 100644 xen/arch/riscv/include/asm/p2m.h
 create mode 100644 xen/arch/riscv/include/asm/regs.h
 create mode 100644 xen/arch/riscv/include/asm/setup.h
 create mode 100644 xen/arch/riscv/include/asm/smp.h
 create mode 100644 xen/arch/riscv/include/asm/spinlock.h
 create mode 100644 xen/arch/riscv/include/asm/system.h
 create mode 100644 xen/arch/riscv/include/asm/time.h
 create mode 100644 xen/arch/riscv/lib/Makefile
 create mode 100644 xen/arch/riscv/lib/find_next_bit.c
 create mode 100644 xen/arch/riscv/stubs.c
 create mode 100644 xen/include/public/arch-riscv.h
 create mode 100644 xen/include/public/arch-riscv/hvm/save.h

-- 
2.42.0



             reply	other threads:[~2023-11-24 10:31 UTC|newest]

Thread overview: 140+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-24 10:30 Oleksii Kurochko [this message]
2023-11-24 10:30 ` [PATCH v2 01/39] xen/riscv: disable unnecessary configs Oleksii Kurochko
2023-12-05 15:38   ` Jan Beulich
2023-12-07  9:22     ` Oleksii
2023-12-07 10:00       ` Jan Beulich
2023-12-07 13:44         ` Oleksii
2023-12-07 14:11           ` Jan Beulich
2023-12-07 14:51             ` Oleksii
2023-12-07 15:18               ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 02/39] xen/riscv: use some asm-generic headers Oleksii Kurochko
2023-12-05 15:40   ` Jan Beulich
2023-12-07  9:36     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 03/39] xen/riscv:introduce asm/byteorder.h Oleksii Kurochko
2023-12-05 15:48   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 04/39] xen/riscv: add public arch-riscv.h Oleksii Kurochko
2023-12-14 13:20   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 05/39] xen/riscv: introduce spinlock.h Oleksii Kurochko
2023-12-05 15:53   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 06/39] xen/riscv: introduce fence.h Oleksii Kurochko
2023-12-05 15:56   ` Jan Beulich
2023-12-07  9:42     ` Oleksii
2023-12-07  9:45       ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 07/39] xen/riscv: introduce arch-riscv/hvm/save.h Oleksii Kurochko
2023-12-05 15:59   ` Jan Beulich
2023-12-07 18:09     ` Shawn Anastasio
2023-12-20 20:05     ` Oleksii
2023-12-21  7:58       ` Jan Beulich
2023-12-21  9:42         ` Oleksii
2023-11-24 10:30 ` [PATCH v2 08/39] xen/riscv: introduce asm/cpufeature.h Oleksii Kurochko
2023-12-07 14:19   ` Jan Beulich
2023-12-07 14:25     ` Jan Beulich
2023-12-08  9:21       ` Oleksii
2023-11-24 10:30 ` [PATCH v2 09/39] xen/riscv: introduce asm/guest_atomics.h Oleksii Kurochko
2023-12-07 14:20   ` Jan Beulich
2023-12-08  9:22     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 10/39] xen/riscv: introduce asm/iommu.h Oleksii Kurochko
2023-12-07 14:22   ` Jan Beulich
2023-12-08  9:29     ` Oleksii
2023-12-08 10:21       ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 11/39] xen/riscv: introduce asm/nospec.h Oleksii Kurochko
2023-12-07 14:28   ` Jan Beulich
2023-12-08  9:33     ` Oleksii
2023-12-08 10:23       ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 12/39] xen/riscv: introduce asm/setup.h Oleksii Kurochko
2023-12-07 14:29   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 13/39] xen/riscv: introduce asm/system.h Oleksii Kurochko
2023-12-07 15:07   ` Jan Beulich
2023-12-08  9:43     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 14/39] xen/riscv: introduce bitops.h Oleksii Kurochko
2023-12-07 15:37   ` Jan Beulich
2023-12-08  9:50     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 15/39] xen/riscv: introduce flushtlb.h Oleksii Kurochko
2023-12-07 15:39   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 16/39] xen/riscv: introduce asm/smp.h Oleksii Kurochko
2023-12-07 15:43   ` Jan Beulich
2023-12-08  9:53     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 17/39] xen/riscv: introduce asm/atomic.h Oleksii Kurochko
2023-12-07 15:57   ` Jan Beulich
2023-12-21 15:11     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 18/39] xen/riscv: introduce cmpxchg.h Oleksii Kurochko
2023-12-12 16:51   ` Jan Beulich
2023-12-12 17:14     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 19/39] xen/riscv: introduce asm/io.h Oleksii Kurochko
2023-12-12 16:56   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 20/39] xen/riscv: define bug frame tables in xen.lds.S Oleksii Kurochko
2023-12-12 16:57   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 21/39] xen/riscv: introduce bit operations Oleksii Kurochko
2023-12-14 13:27   ` Jan Beulich
2023-12-18  9:56     ` Oleksii
2023-12-18 10:06       ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 22/39] xen/riscv: introduce asm/domain.h Oleksii Kurochko
2023-12-14 13:41   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 23/39] xen/riscv: introduce asm/guest_access.h Oleksii Kurochko
2023-12-14 14:06   ` Jan Beulich
2023-12-18 10:02     ` Oleksii
2023-12-18 10:10       ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 24/39] xen/riscv: introduce asm/irq.h Oleksii Kurochko
2023-12-14 14:09   ` Jan Beulich
2023-12-18 10:04     ` Oleksii
2023-12-18 10:12       ` Jan Beulich
2023-12-18 11:42         ` Oleksii
2023-11-24 10:30 ` [PATCH v2 25/39] xen/riscv: introduce asm/p2m.h Oleksii Kurochko
2023-12-14 14:19   ` Jan Beulich
2023-12-18 10:06     ` Oleksii
2023-12-14 15:01   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 26/39] xen/riscv: introduce asm/regs.h Oleksii Kurochko
2023-12-14 15:05   ` Jan Beulich
2023-12-18 10:08     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 27/39] xen/riscv: introduce asm/time.h Oleksii Kurochko
2023-12-14 15:06   ` Jan Beulich
2023-12-18 10:09     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 28/39] xen/riscv: introduce asm/event.h Oleksii Kurochko
2023-12-14 15:08   ` Jan Beulich
2023-12-18 10:10     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 29/39] xen/riscv: add definition of __read_mostly Oleksii Kurochko
2023-12-12 17:04   ` Jan Beulich
2023-12-21 15:23     ` Andrew Cooper
2024-01-04 13:56       ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 30/39] xen/riscv: define an address of frame table Oleksii Kurochko
2023-12-14 15:48   ` Jan Beulich
2023-12-18 10:36     ` Oleksii
2023-12-18 11:22       ` Jan Beulich
2023-12-21 19:59         ` Oleksii
2023-12-22  8:08           ` Jan Beulich
2023-12-22  9:16             ` Oleksii
2023-11-24 10:30 ` [PATCH v2 31/39] xen/riscv: add required things to asm/current.h Oleksii Kurochko
2023-12-14 15:55   ` Jan Beulich
2023-12-18 10:39     ` Oleksii
2023-12-18 11:28       ` Jan Beulich
2023-12-18 11:44         ` Oleksii
2023-11-24 10:30 ` [PATCH v2 32/39] xen/riscv: add minimal stuff to asm/page.h to build full Xen Oleksii Kurochko
2023-12-14 15:57   ` Jan Beulich
2023-12-18 10:45     ` Oleksii
2023-12-18 11:36       ` Jan Beulich
2023-12-18 11:57         ` Oleksii
2023-12-18 12:05           ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 33/39] xen/riscv: add minimal stuff to asm/processor.h " Oleksii Kurochko
2023-12-14 16:04   ` Jan Beulich
2023-12-18 10:49     ` Oleksii
2023-12-18 11:38       ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 34/39] xen: add RISCV support for pmu.h Oleksii Kurochko
2023-12-14 16:16   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 35/39] xen: add necessary headers to common to build full Xen for RISC-V Oleksii Kurochko
2023-12-14 16:20   ` Jan Beulich
2023-12-18 11:03     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 36/39] xen/riscv: add minimal stuff to asm/mm.h to build full Xen Oleksii Kurochko
2023-12-14 17:08   ` Jan Beulich
2023-12-18 11:35     ` Oleksii
2023-11-24 10:30 ` [PATCH v2 37/39] xen/rirscv: add minimal amount of stubs " Oleksii Kurochko
2023-12-18 17:00   ` Jan Beulich
2023-12-20 12:55     ` Oleksii
2023-12-21  8:02       ` Jan Beulich
2023-12-21 18:47         ` Oleksii
2023-11-24 10:30 ` [PATCH v2 38/39] xen/riscv: enable full Xen build Oleksii Kurochko
2023-12-18 15:28   ` Jan Beulich
2023-11-24 10:30 ` [PATCH v2 39/39] xen: fix compilation issue of serial.c Oleksii Kurochko
2023-12-14 16:24   ` Jan Beulich
2023-12-14 16:40     ` Oleksii
2023-12-07 14:30 ` [PATCH v2 00/39] Enable build of full Xen for RISC-V Jan Beulich
2023-12-08  9:56   ` 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=cover.1700761381.git.oleksii.kurochko@gmail.com \
    --to=oleksii.kurochko@gmail.com \
    --cc=alistair.francis@wdc.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=bobbyeshleman@gmail.com \
    --cc=cardoe@cardoe.com \
    --cc=connojdavis@gmail.com \
    --cc=george.dunlap@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).