[PATCH] xen/arm: Print correct domid in allocate_memory_11

Michal Orzel posted 1 patch 3 weeks, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20260112104233.86482-1-michal.orzel@amd.com
xen/arch/arm/domain_build.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] xen/arm: Print correct domid in allocate_memory_11
Posted by Michal Orzel 3 weeks, 6 days ago
allocate_memory_11() can be called for dom0 and direct-mapped hwdom
domU. In the latter scenario, a log message would still mention dom0
instead of the correct domid.

Fixes: 52cb53f1816a ("xen/arm: dom0less hwdom construction")
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
---
 xen/arch/arm/domain_build.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 986a456f171b..e8795745ddc7 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -296,9 +296,9 @@ static void __init allocate_memory_11(struct domain *d,
      */
     BUG_ON(!is_domain_direct_mapped(d));
 
-    printk("Allocating 1:1 mappings totalling %ldMB for dom0:\n",
+    printk("Allocating 1:1 mappings totalling %ldMB for %pd:\n",
            /* Don't want format this as PRIpaddr (16 digit hex) */
-           (unsigned long)(kinfo->unassigned_mem >> 20));
+           (unsigned long)(kinfo->unassigned_mem >> 20), d);
 
     mem->nr_banks = 0;
 
-- 
2.43.0
Re: [PATCH] xen/arm: Print correct domid in allocate_memory_11
Posted by Andrew Cooper 3 weeks, 6 days ago
On 12/01/2026 10:42 am, Michal Orzel wrote:
> allocate_memory_11() can be called for dom0 and direct-mapped hwdom
> domU. In the latter scenario, a log message would still mention dom0
> instead of the correct domid.
>
> Fixes: 52cb53f1816a ("xen/arm: dom0less hwdom construction")
> Signed-off-by: Michal Orzel <michal.orzel@amd.com>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Re: [PATCH] xen/arm: Print correct domid in allocate_memory_11
Posted by Stefano Stabellini 3 weeks, 6 days ago
On Mon, 12 Jan 2026, Andrew Cooper wrote:
> On 12/01/2026 10:42 am, Michal Orzel wrote:
> > allocate_memory_11() can be called for dom0 and direct-mapped hwdom
> > domU. In the latter scenario, a log message would still mention dom0
> > instead of the correct domid.
> >
> > Fixes: 52cb53f1816a ("xen/arm: dom0less hwdom construction")
> > Signed-off-by: Michal Orzel <michal.orzel@amd.com>
> 
> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>