|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] xen/domain: introduce generic functions for domain struct allocation and freeing
On 26.11.25 16:32, Oleksii Kurochko wrote: From: Roger Pau Monne <roger.pau@xxxxxxxxxx> Move x86's free_domain_struct() to common code since it is shared between architectures. Move the x86 version of alloc_domain_struct() to common code as most of the logic is architecture-independent. To handle the remaining architectural differences, introduce arch_alloc_domain_struct_bits() for x86-specific allocation requirements. No functional change. Suggested-By: Jan Beulich <jbeulich@xxxxxxxx> [Introduce an arch-specific function instead of using a weak function] Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx> --- Changes in v2: - CI test results: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/2180836457 - Introduce an arch-specific function to handle differences between arch-es in domain structure allocation requirements, instead of relying on a weak function. - Add Suggested-by: Jan Beulich <jbeulich@xxxxxxxx>. - Move free_domain_struct() to common code. - Update the commit message. --- xen/arch/arm/domain.c | 17 ----------------- xen/arch/ppc/stubs.c | 10 ---------- xen/arch/riscv/stubs.c | 10 ---------- xen/arch/x86/domain.c | 15 ++------------- xen/arch/x86/include/asm/pv/domain.h | 3 +++ xen/common/domain.c | 23 +++++++++++++++++++++++ 6 files changed, 28 insertions(+), 50 deletions(-) [...]
Is it intentionally placed in PV header x86/include/asm/pv/domain.h? -- Best regards, -grygorii
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |