[PATCH 0/2] generalise vcpu0 creation for predefined domains

Alejandro Vallejo posted 2 patches 3 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250717175128.462996-1-alejandro.garciavallejo@amd.com
xen/arch/arm/domain_build.c           |  7 +------
xen/arch/x86/dom0_build.c             | 12 ++++++++----
xen/arch/x86/include/asm/dom0_build.h |  5 +++++
xen/arch/x86/setup.c                  |  6 ++++--
xen/include/xen/domain.h              |  1 -
5 files changed, 18 insertions(+), 13 deletions(-)
[PATCH 0/2] generalise vcpu0 creation for predefined domains
Posted by Alejandro Vallejo 3 months, 2 weeks ago
Hi,

This patch is a very compressed version of Daniel's. Originally, it
performed code motion between dom0_build.c and domain-builder/domain.c,
but in order for this to go in early, I've compressed everything in a
single hunk and left it in dom0_build.c.

We can move whatever must be moved later on.

I could see inlining the affinity settings and removing this function
altogether (having a regular vcpu_create() in its place). I've kept it
as is for consistency with the previous patch.

See https://lore.kernel.org/xen-devel/20250515131744.3843-5-dpsmith@apertussolutions.com/

I've kept the S-by too, as this patch descends directly from that one.

Differences with Daniel's RFC:
  * Function takes a domain, as the struct already exists by then.
  * Apply dom0 cmdline overrides to control and hardware domains.
  * Keep everything in dom0_build.c for the time being.
  * Remove arm's incarnation of the function. It's just useless.

Cheers,
Alejandro

Alejandro Vallejo (2):
  arm: Remove alloc_dom0_vcpu0()
  x86: generalise vcpu0 creation for a domain

 xen/arch/arm/domain_build.c           |  7 +------
 xen/arch/x86/dom0_build.c             | 12 ++++++++----
 xen/arch/x86/include/asm/dom0_build.h |  5 +++++
 xen/arch/x86/setup.c                  |  6 ++++--
 xen/include/xen/domain.h              |  1 -
 5 files changed, 18 insertions(+), 13 deletions(-)


base-commit: 55719030b0bb0069fc8b57cd808dc98dc9d39add
-- 
2.43.0