All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen: fix sstate namespace collision
@ 2026-11-23 12:41 Ronaldo Nunez
  2026-11-30  4:27 ` [meta-virtualization][PATCH] " Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Ronaldo Nunez @ 2026-11-23 12:41 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Ronaldo Nunez

The sstate namespace is defined by PACKAGE_ARCH which defaults to
TUNE_PKGARCH. Building for a second MACHINE that shares the same tune
will fail due to a collision on that namespace.

Set PACKAGE_ARCH to MACHINE_ARCH in both recipe include files, so each
machine gets an isolated output namespace.

Tested by building xen for qemuarm64 and for a qemuarm64-derived
machine with the same tune, both now build.

Signed-off-by: Ronaldo Nunez <rnunez@baylibre.com>
---
 recipes-extended/xen/xen-hypervisor.inc | 2 ++
 recipes-extended/xen/xen-tools.inc      | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/recipes-extended/xen/xen-hypervisor.inc b/recipes-extended/xen/xen-hypervisor.inc
index f448564d1f96634605ec97658d48333ff6dd96d8..40d2e472aabc0ad3236c3325c0d16c818ed35e13 100644
--- a/recipes-extended/xen/xen-hypervisor.inc
+++ b/recipes-extended/xen/xen-hypervisor.inc
@@ -11,6 +11,8 @@ COMPATIBLE_HOST = '(x86_64.*).*-linux|aarch64.*-linux'
 
 inherit deploy python3native cml1
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 PACKAGES = " \
     ${PN} \
     ${PN}-dbg \
diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-tools.inc
index f38cabc2b1766ceb9b2a64f48eddc37e413a5cc6..2a18fe1e3613e45f4755cbb0767bebb537db0f24 100644
--- a/recipes-extended/xen/xen-tools.inc
+++ b/recipes-extended/xen/xen-tools.inc
@@ -6,6 +6,8 @@ COMPATIBLE_HOST = 'i686-.*-linux|(x86_64.*).*-linux|aarch64.*-linux'
 inherit setuptools3 update-rc.d systemd deploy
 require xen-blktap.inc
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 # dom0 network topology for DomU guests. Set XEN_DOM0_NETWORK in local.conf:
 #   bridged (default) - eth0 is enslaved into xenbr0 and xenbr0 gets DHCP; DomU
 #                       vifs bridge onto whatever LAN xenbr0's uplink is on.

---
base-commit: 89b00d096a432000766729cd721ae647af500112
change-id: 20261123-sstate-collision-fix-735333853d9d

Best regards,
-- 
Ronaldo Nunez <rnunez@baylibre.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-virtualization][PATCH] xen: fix sstate namespace collision
  2026-11-23 12:41 [PATCH] xen: fix sstate namespace collision Ronaldo Nunez
@ 2026-11-30  4:27 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2026-11-30  4:27 UTC (permalink / raw)
  To: Ronaldo Nunez; +Cc: meta-virtualization

> The sstate namespace is defined by PACKAGE_ARCH which defaults to
> TUNE_PKGARCH. Building for a second MACHINE that shares the same tune
> will fail due to a collision on that namespace.

What was the actual error you hit ? Can you put it in the commit
message, along with the two machines ? Without it, I'm guessing at
which part of the build is colliding.

> Set PACKAGE_ARCH to MACHINE_ARCH in both recipe include files, so each
> machine gets an isolated output namespace.

Making the hypervisor machine specific seems reasonable to me, it is
in the same spot as a kernel or bootloader.

xen-tools is a different story. With this, every toolstack package
(the libraries, xl, the python bits) is built and packaged once per
machine, even when the tune is identical. So I'd like to know what
actually differs in xen-tools between your two machines before taking
that. If it's only the hypervisor whose output changes, then only it
needs the change.

> Tested by building xen for qemuarm64 and for a qemuarm64-derived
> machine with the same tune, both now build.

What does the qemuarm64-derived machine change ? If it's adding xen
config fragments, or anything else that changes what gets built, that
would explain which recipe needs to be machine specific.

Bruce

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30  4:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 12:41 [PATCH] xen: fix sstate namespace collision Ronaldo Nunez
2026-11-30  4:27 ` [meta-virtualization][PATCH] " Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.