[PATCH v2 00/11] RISCV: enable DOMAIN_BUILD_HELPERS

Oleksii Kurochko posted 11 patches an hour ago
Failed in applying to current master (apply log)
xen/arch/arm/domain_build.c               |  12 +-
xen/arch/arm/domctl.c                     |   2 +-
xen/arch/arm/guestcopy.c                  |  24 ++--
xen/arch/arm/include/asm/domain.h         |  14 --
xen/arch/arm/include/asm/guest_access.h   |  18 +--
xen/arch/arm/include/asm/p2m.h            |   4 +-
xen/arch/arm/include/asm/setup.h          |   3 -
xen/arch/arm/kernel.c                     |  48 +++----
xen/arch/arm/mmu/p2m.c                    |  18 +--
xen/arch/arm/p2m.c                        |   6 +-
xen/arch/ppc/include/asm/guest_access.h   |  10 +-
xen/arch/riscv/Kconfig                    |   1 +
xen/arch/riscv/Makefile                   |   2 +
xen/arch/riscv/guestcopy.c                | 116 ++++++++++++++++
xen/arch/riscv/include/asm/config.h       |  13 ++
xen/arch/riscv/include/asm/guest_access.h |  13 +-
xen/arch/riscv/include/asm/p2m.h          |  18 +--
xen/arch/riscv/kernel.c                   | 158 ++++++++++++++++++++++
xen/arch/riscv/p2m.c                      |  63 ++++++++-
xen/arch/riscv/stubs.c                    |   8 +-
xen/common/device-tree/domain-build.c     |   2 +-
xen/common/device-tree/kernel.c           |   2 +-
xen/common/domain.c                       |   8 +-
xen/drivers/passthrough/arm/ipmmu-vmsa.c  |   4 +-
xen/drivers/passthrough/arm/smmu-v3.c     |   2 +-
xen/drivers/passthrough/arm/smmu.c        |   2 +-
xen/include/public/arch-riscv.h           |  16 +++
xen/include/xen/bootinfo.h                |   4 +
xen/include/xen/domain.h                  |  16 +++
xen/include/xen/fdt-domain-build.h        |   8 +-
xen/include/xen/fdt-kernel.h              |   4 +-
31 files changed, 499 insertions(+), 120 deletions(-)
create mode 100644 xen/arch/riscv/guestcopy.c
create mode 100644 xen/arch/riscv/kernel.c
[PATCH v2 00/11] RISCV: enable DOMAIN_BUILD_HELPERS
Posted by Oleksii Kurochko an hour ago
Introduce necessary things to enable DOMAIN_BUILD_HELPERS config for RISC-V.

Generally it is indepenent patch series from [1] but depends on which
patches will go first it could be some merge conflicts.

[1] https://lore.kernel.org/xen-devel/cover.1773419622.git.oleksii.kurochko@gmail.com/

CI tests: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/2403222832

---
Changes in v2:
 - Address the comments from ML.
 - Introduce some new patches to make dom0less solution more architecture
   indepenent from terminology point of view.
 - Minor fixes.
---

Oleksii Kurochko (11):
  xen/riscv: implement get_page_from_gfn()
  xen: return proper type for guest access functions
  xen/riscv: implement copy_to_guest_phys()
  xen/dom0less: rename kernel_zimage_probe() to kernel_image_probe()
  xen/riscv: add kernel loading support
  xen: move declaration of fw_unreserved_regions() to common header
  xen: move domain_use_host_layout() to common code
  xen: rename p2m_ipa_bits to p2m_gpa_bits
  xen/riscv: introduce p2m_gpa_bits
  xen/riscv: add definition of guest RAM banks
  xen/riscv: enable DOMAIN_BUILD_HELPERS

 xen/arch/arm/domain_build.c               |  12 +-
 xen/arch/arm/domctl.c                     |   2 +-
 xen/arch/arm/guestcopy.c                  |  24 ++--
 xen/arch/arm/include/asm/domain.h         |  14 --
 xen/arch/arm/include/asm/guest_access.h   |  18 +--
 xen/arch/arm/include/asm/p2m.h            |   4 +-
 xen/arch/arm/include/asm/setup.h          |   3 -
 xen/arch/arm/kernel.c                     |  48 +++----
 xen/arch/arm/mmu/p2m.c                    |  18 +--
 xen/arch/arm/p2m.c                        |   6 +-
 xen/arch/ppc/include/asm/guest_access.h   |  10 +-
 xen/arch/riscv/Kconfig                    |   1 +
 xen/arch/riscv/Makefile                   |   2 +
 xen/arch/riscv/guestcopy.c                | 116 ++++++++++++++++
 xen/arch/riscv/include/asm/config.h       |  13 ++
 xen/arch/riscv/include/asm/guest_access.h |  13 +-
 xen/arch/riscv/include/asm/p2m.h          |  18 +--
 xen/arch/riscv/kernel.c                   | 158 ++++++++++++++++++++++
 xen/arch/riscv/p2m.c                      |  63 ++++++++-
 xen/arch/riscv/stubs.c                    |   8 +-
 xen/common/device-tree/domain-build.c     |   2 +-
 xen/common/device-tree/kernel.c           |   2 +-
 xen/common/domain.c                       |   8 +-
 xen/drivers/passthrough/arm/ipmmu-vmsa.c  |   4 +-
 xen/drivers/passthrough/arm/smmu-v3.c     |   2 +-
 xen/drivers/passthrough/arm/smmu.c        |   2 +-
 xen/include/public/arch-riscv.h           |  16 +++
 xen/include/xen/bootinfo.h                |   4 +
 xen/include/xen/domain.h                  |  16 +++
 xen/include/xen/fdt-domain-build.h        |   8 +-
 xen/include/xen/fdt-kernel.h              |   4 +-
 31 files changed, 499 insertions(+), 120 deletions(-)
 create mode 100644 xen/arch/riscv/guestcopy.c
 create mode 100644 xen/arch/riscv/kernel.c

-- 
2.53.0