xen/arm: Print correct domid in allocate_memory_11
PATCH 1/1 xen/arm: Print correct domid in allocate_memory_11
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 <[email protected]>
--- xen/arch/arm/domain_build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/domain_build.c +2 -2
@@ -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 ;
Signature · 1 line
2.43.0
Quoted 6 lines · Michal Orzel
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 <[email protected]>
Acked-by Andrew Cooper <[email protected]>
Stefano Stabellini
Acked-byQuoted 9 lines · Andrew Cooper
Quoted 6 lines · Michal Orzel
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 <[email protected]>Acked-by Andrew Cooper <[email protected]>