Skip to content

Move alloc_domain_struct() to common code

Oleksii Kurochko xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/riscv: rework asm/mm.h and asm/page.h includes to match other architecturesxen/arch/riscv/include/asm/mm.h xen/arch/riscv/include/asm/page.h xen/arch/riscv/mm.c+36 -371 reply
2/2xen/domain: introduce generic weak function for domain struct allocationxen/arch/arm/domain.c xen/arch/ppc/stubs.c xen/arch/riscv/stubs.c +1 more+14 -222 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchOleksii KurochkoAndrew Cooper
1/2A-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] Move alloc_domain_struct() to common code

x86 has specific requirements about the allocation of the domain structure, but that's not the case for ARM or likely other architectures.

Introduce a generic weak function that can be overwritten with an architecture specific implementation if required.

RISC-V has a compilation issue [1] after an introduction of [2] becuase of different way inclusion of asm/page.h and asm/mm.h (for more details please check the patch [3]).
So rework asm/mm.h and asm/page.h includes to match other architectures.

[1] https://gitlab.com/xen-project/people/royger/xen/-/jobs/10328429719#L553
[2] xen/domain: introduce generic weak function for domain struct allocation
[3] xen/riscv: rework asm/mm.h and asm/page.h includes to match other architectures

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

Oleksii Kurochko (1):
xen/riscv: rework asm/mm.h and asm/page.h includes to match other
architectures

Roger Pau Monne (1):
xen/domain: introduce generic weak function for domain struct
allocation

 xen/arch/arm/domain.c             | 12 -----------
 xen/arch/ppc/stubs.c              |  5 -----
 xen/arch/riscv/include/asm/mm.h   | 24 ++++++++++++++++++---
 xen/arch/riscv/include/asm/page.h | 35 +------------------------------
 xen/arch/riscv/mm.c               | 14 +++++++++++++
 xen/arch/riscv/stubs.c            |  5 -----
 xen/common/domain.c               | 14 +++++++++++++
 7 files changed, 50 insertions(+), 59 deletions(-)
Signature · 1 line
2.49.0