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

RE: [Xen-ia64-devel] [Patch][Update] initrd and cmdline support forDomai

To: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-ia64-devel] [Patch][Update] initrd and cmdline support forDomainU
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Thu, 22 Dec 2005 17:26:01 +0900
Delivery-date: Thu, 22 Dec 2005 08:30:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C9C606BD01C65Atakebe_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: <516F50407E01324991DD6D07B0531AD5902A33@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C9C606BD01C65Atakebe_akio@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Dan

My patch is not completely committed.
I make a small patch.
This is the part which wasn't committed.

Best Regards,

Akio Takebe

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>

diff -r 934470721c46 xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c        Wed Dec 21 19:18:19 2005
+++ b/xen/arch/ia64/xen/dom_fw.c        Thu Dec 22 17:01:50 2005
@@ -861,9 +861,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 = d->arch.initrd_start;
+                bp->initrd_size  = d->arch.initrd_len;
+       }
                 printf(" initrd start %0xlx", bp->initrd_start);
                 printf(" initrd size %0xlx", bp->initrd_size);



>Hi, Dan and all
>
>cmdline's sample is the bellow
>
>----------------------
>kernel = "/boot/vmlinux-2.6.12-xenU"
>ramdisk = "/boot/initrd-2.6.12-xenU.img"
>memory = 256
>name = "rhel4-2"
>disk = [ 'file:/home/takebe/rhel4.img,hda1,w' ]
>root = "/dev/hda1 ro"
>extra = "nomca nosmp xencons=tty0 console=tty0 3"
>-----------------------
>
>Today I'm trying to build and boot new changeset. 
>But I cannot boot DomU.
>I will update my recipe, please wait.
>
>My environment is ;
>  Machine      : Tiger4
>  Dom0&DomU OS : RHEL4 U2
>  changeset    : 8424
>
>Best Regards,
>
>Akio Takebe
>
>>Committed.  I added some code for backwards compatibility
>>that uses the old cmdline if none is specified.
>>
>>Could you post instructions on how to change the cmdline
>>for domU boots?  Eventually after everyone starts using
>>this correctly, we should remove the code for the old default. 
>>
>>Thanks,
>>Dan
>>

Attachment: guest_initrd_fix.patch
Description: Binary data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>