xen/arm: Don't blindly print hwdom in generic panic messages

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>
This commit is contained in:
Michal Orzel committed 2025-03-04 08:54:53 +01:00
1 parent dead72ba93
commit 23bb5f1a11
2 files changed
+4 -4

No files matched your search

+2 -2
View 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);
}
+2 -2
View 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);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.