Re: [Xen-ia64-devel] [Patch] massage of elf_sanity_check as x86

2006-04-25 Thread Alex Williamson
On Mon, 2006-04-24 at 15:14 +0900, Akio Takebe wrote:
 Hi,
 
 This small patch output message of elf_sanity_check as x86.
 Currently this panic is the only following message.

   Applied.

-- 
Alex Williamson HP Linux  Open Source Lab


___
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel


[Xen-ia64-devel] [Patch] massage of elf_sanity_check as x86

2006-04-24 Thread Akio Takebe
Hi,

This small patch output message of elf_sanity_check as x86.
Currently this panic is the only following message.

(XEN) *** LOADING DOMAIN 0 ***
(XEN) 
(XEN) 
(XEN) Panic on CPU 0:
(XEN) Could not set up DOM0 guest OS
(XEN) 
(XEN) 
(XEN) Reboot in five seconds...
(XEN) machine_restart called: spinning

Best Regards,

Akio Takebe

Signed-off-by: Akio Takebe [EMAIL PROTECTED]

diff -r de0c04ed4ab7 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.cFri Apr 21 10:40:17 2006 -0600
+++ b/xen/arch/ia64/xen/domain.cMon Apr 24 15:05:38 2006 +0900
@@ -751,7 +751,12 @@ unsigned long domain_mpa_to_imva(struct 
 // see arch/x86/xxx/domain_build.c
 int elf_sanity_check(Elf_Ehdr *ehdr)
 {
-   return (IS_ELF(*ehdr));
+   if (!(IS_ELF(*ehdr)))
+   {
+   printk(DOM0 image is not a Xen-compatible Elf image.\n);
+   return 0;
+   }
+   return 1;
 }
 
 static void copy_memory(void *dst, void *src, int size)



msg_of_elf_sanity_check.patch
Description: Binary data
___
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel