mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
dead72ba93
commit
23bb5f1a11
2 files changed
+4
-4
No files matched your search
@@ -2117,12 +2117,12 @@ static void __init initrd_load(struct kernel_info *kinfo)
|
|||||||
|
|
||||||
initrd = ioremap_wc(paddr, len);
|
initrd = ioremap_wc(paddr, len);
|
||||||
if ( !initrd )
|
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,
|
res = copy_to_guest_phys_flush_dcache(kinfo->d, load_addr,
|
||||||
initrd, len);
|
initrd, len);
|
||||||
if ( res != 0 )
|
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);
|
iounmap(initrd);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,12 +150,12 @@ static void __init kernel_zimage_load(struct kernel_info *info)
|
|||||||
|
|
||||||
kernel = ioremap_wc(paddr, len);
|
kernel = ioremap_wc(paddr, len);
|
||||||
if ( !kernel )
|
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,
|
rc = copy_to_guest_phys_flush_dcache(info->d, load_addr,
|
||||||
kernel, len);
|
kernel, len);
|
||||||
if ( rc != 0 )
|
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);
|
iounmap(kernel);
|
||||||
}
|
}
|
||||||
|
|||||||