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-devel

Re: [Xen-devel] Size limit on extra argument to xm create

To: "Mick.Jordan@xxxxxxx" <Mick.Jordan@xxxxxxx>
Subject: Re: [Xen-devel] Size limit on extra argument to xm create
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 12 Oct 2009 18:15:44 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 12 Oct 2009 10:16:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AD361D4.8010500@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpLXjM93R5aXEWsR12UrusWERrDngAAW5xQ
Thread-topic: [Xen-devel] Size limit on extra argument to xm create
User-agent: Microsoft-Entourage/12.20.0.090605
On 12/10/2009 18:05, "Mick Jordan" <Mick.Jordan@xxxxxxx> wrote:

> On 10/ 9/09 11:30 PM, Keir Fraser wrote:
>> Since it's baked into the guest ABI, it's not expandable. It's rather likely
>> you'll have to live with only 1024 characters of boot parameters: the
>> horror!
>>   
> I realize that 1024 seems large enough for a traditional OS. In my Java
> Virtual Machine guest, I am faced with some applications that issue very
> large command lines, certainly in excess of 1024. There are workarounds,
> but it means I can't run certain apps out of the box.
>> The initial ram disk is just an 'module' you can load into guest memory for
>> interpretation by the guest kernel as it loads. Convention is to load it
>> into RAM immediately after the guest kernel, and place its address and size
>> into the mod_start/mod_len fields of start_info.
>>   
> I assume this is specified via the "ramdisk" configuration file option?

Yeah, so for example you can (ab)use the ramdisk option by writing your
super-long command line into a file, and then specify that file as a
ramdisk. And have a convention that your Java VM interprets a ramdisk as a
command line. You can stick whatever you like in that ramdisk file, and it
can be pretty much as big as you like.

 -- Keir



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