|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [Patch] booting Guest domains w/o initrd on RHEL4
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
|
|
|
|
|