Skip to contentSkip to conversation

xen/arm: domain_build: Print the correct domain in construct_domain()

PATCH In review Julien Grall 3 participants 3 messages Aug 15, 2019 – Oct 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: domain_build: Print the correct domain in construct_domain()

construct_domain() can be called by other domain than dom0. To avoid confusion in the log, print the correct domain.

---
 xen/arch/arm/domain_build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/domain_build.c +1 -1
index 33171081ea..cf9ffbc360 100644
@@ -1978,7 +1978,7 @@ static int __init construct_domain(struct domain *d, struct kernel_info *kinfo)
         cpu = cpumask_cycle(cpu, &cpu_online_map);
         if ( vcpu_create(d, i, cpu) == NULL )
         {
-            printk("Failed to allocate dom0 vcpu %d on pcpu %d\n", i, cpu);
+            printk("Failed to allocate %pd vcpu %d on pcpu %d\n", d, i, cpu);
             break;
         }
 
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Julien Grall

construct_domain() can be called by other domain than dom0. To avoid confusion in the log, print the correct domain.

Quoted 16 lines
---
 xen/arch/arm/domain_build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/domain_build.c +1 -1
index 33171081ea..cf9ffbc360 100644
@@ -1978,7 +1978,7 @@ static int __init construct_domain(struct domain *d, struct kernel_info *kinfo)
         cpu = cpumask_cycle(cpu, &cpu_online_map);
         if ( vcpu_create(d, i, cpu) == NULL )
         {
-            printk("Failed to allocate dom0 vcpu %d on pcpu %d\n", i, cpu);
+            printk("Failed to allocate %pd vcpu %d on pcpu %d\n", d, i, cpu);
             break;
         }
Signature · 5 lines
Volodymyr Babchuk at EPAM
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#2 lore raw
In reply to Julien Grall
Quoted 4 lines · Julien Grall

construct_domain() can be called by other domain than dom0. To avoid confusion in the log, print the correct domain.

Quoted 20 lines
---
 xen/arch/arm/domain_build.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/domain_build.c +1 -1
index 33171081ea..cf9ffbc360 100644
@@ -1978,7 +1978,7 @@ static int __init construct_domain(struct domain *d, struct kernel_info *kinfo)
         cpu = cpumask_cycle(cpu, &cpu_online_map);
         if ( vcpu_create(d, i, cpu) == NULL )
         {
-            printk("Failed to allocate dom0 vcpu %d on pcpu %d\n", i, cpu);
+            printk("Failed to allocate %pd vcpu %d on pcpu %d\n", d, i, cpu);
             break;
         }
 
Signature · 1 line
2.11.0

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel