]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: Don't blindly print hwdom in generic panic messages
authorMichal Orzel <michal.orzel@amd.com>
Mon, 3 Mar 2025 08:56:50 +0000 (09:56 +0100)
committerMichal Orzel <michal.orzel@amd.com>
Tue, 4 Mar 2025 07:54:53 +0000 (08:54 +0100)
These functions are generic and used not only for hardware domain. This
creates confusion when printing any of these panic messages (e.g.
failure when loading domU kernel would result in informing a user about
a failure in loading hwdom kernel).

Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/domain_build.c
xen/arch/arm/kernel.c

index fea1382d497e56222a9cdb81f975c8736507a8cd..d4570bc0b4e46d8572746adeafc5fd869cb3b23a 100644 (file)
@@ -2117,12 +2117,12 @@ static void __init initrd_load(struct kernel_info *kinfo)
 
     initrd = ioremap_wc(paddr, len);
     if ( !initrd )
-        panic("Unable to map the hwdom initrd\n");
+        panic("Unable to map the %pd initrd\n", kinfo->d);
 
     res = copy_to_guest_phys_flush_dcache(kinfo->d, load_addr,
                                           initrd, len);
     if ( res != 0 )
-        panic("Unable to copy the initrd in the hwdom memory\n");
+        panic("Unable to copy the initrd in the %pd memory\n", kinfo->d);
 
     iounmap(initrd);
 }
index 80fad8b3362cb53546d5be76edda4ee5fdfe9d41..6eaf9e2b06b3e82f47629c5420376503e05c4fda 100644 (file)
@@ -150,12 +150,12 @@ static void __init kernel_zimage_load(struct kernel_info *info)
 
     kernel = ioremap_wc(paddr, len);
     if ( !kernel )
-        panic("Unable to map the hwdom kernel\n");
+        panic("Unable to map the %pd kernel\n", info->d);
 
     rc = copy_to_guest_phys_flush_dcache(info->d, load_addr,
                                          kernel, len);
     if ( rc != 0 )
-        panic("Unable to copy the kernel in the hwdom memory\n");
+        panic("Unable to copy the kernel in the %pd memory\n", info->d);
 
     iounmap(kernel);
 }