WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [Patch] booting Guest domains w/o initrd on RHEL4

To: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [Patch] booting Guest domains w/o initrd on RHEL4
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Wed, 30 Nov 2005 20:03:24 +0900
Delivery-date: Wed, 30 Nov 2005 11:04:08 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <F1C5F463CD30FBtakebe_akio@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <516F50407E01324991DD6D07B0531AD5875A8F@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <F1C5F463CD30FBtakebe_akio@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, all

This patch can boot DomU WITHOUT initrd as RHEL3
when we boot Xen + Domain0 using RHEL4.

Domain0 using RHEL4 must use initrd.
The following error is showed when we boot DomainU.
  RAMDISK: Couldn't find valid RAM disk image starting at 0.
This error is caused by "bp->initrd_start" used Domain0 value.
I fixed it's bug.
But this patch is temporal,
because I want to make a part of initrd in libxc and so on.
Please wait. ;)

Signed-off-by Akio Takabe <takebe_akio@xxxxxxxxxxxxxx>

==============================
diff -r 0ee00faf332d xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c        Wed Nov 23 21:23:28 2005
+++ b/xen/arch/ia64/xen/dom_fw.c        Wed Nov 30 19:29:43 2005
@@ -832,9 +832,14 @@
        bp->console_info.orig_x = 0;
        bp->console_info.orig_y = 24;
        bp->fpswa = 0;
-        bp->initrd_start = (dom0_start+dom0_size) -
-                (PAGE_ALIGN(ia64_boot_param->initrd_size) + 4*1024*
1024);
-        bp->initrd_size = ia64_boot_param->initrd_size;
+       if (d == dom0) {
+                bp->initrd_start = (dom0_start+dom0_size) -
+                        (PAGE_ALIGN(ia64_boot_param->initrd_size) + 4*
1024*1024);
+                bp->initrd_size = ia64_boot_param->initrd_size;
+       }else{
+                bp->initrd_start = 0;
+                bp->initrd_size = 0;
+       }
                 printf(" initrd start %0xlx", bp->initrd_start);
                 printf(" initrd size %0xlx", bp->initrd_size);

Best Regards,

Akio Takebe



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

<Prev in Thread] Current Thread [Next in Thread>