Introduce necessary things to enable DOMAIN_BUILD_HELPERS config for RISC-V.
Generally it is indepenent patch series from [1] and [2] but depends on which
patches will go first it could be some merge conflicts.
At the moment, patch series is rebased on top of [2]:
staging -> [1] -> [2] -> current patch series.
[1] https://lore.kernel.org/xen-devel/cover.1770650552.git.oleksii.kurochko@gmail.com/T/#t
[2] https://lore.kernel.org/xen-devel/cover.1770739000.git.oleksii.kurochko@gmail.com/T/#t
Oleksii Kurochko (6):
xen/riscv: implement get_page_from_gfn()
xen/riscv: implement copy_to_guest_phys()
xen/riscv: add zImage kernel loading support
xen: move declaration of fw_unreserved_regions() to common header
xen: move domain_use_host_layout() to common header
xen/riscv: enable DOMAIN_BUILD_HELPERS
xen/arch/arm/include/asm/domain.h | 14 --
xen/arch/arm/include/asm/setup.h | 3 -
xen/arch/riscv/Kconfig | 1 +
xen/arch/riscv/Makefile | 2 +
xen/arch/riscv/guestcopy.c | 112 ++++++++++++++++
xen/arch/riscv/include/asm/config.h | 13 ++
xen/arch/riscv/include/asm/guest_access.h | 7 +
xen/arch/riscv/include/asm/p2m.h | 11 +-
xen/arch/riscv/kernel.c | 156 ++++++++++++++++++++++
xen/arch/riscv/p2m.c | 34 +++++
xen/include/public/arch-riscv.h | 8 ++
xen/include/xen/bootinfo.h | 4 +
xen/include/xen/domain.h | 16 +++
13 files changed, 358 insertions(+), 23 deletions(-)
create mode 100644 xen/arch/riscv/guestcopy.c
create mode 100644 xen/arch/riscv/kernel.c
--
2.52.0