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>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Size limit on extra argument to xm create
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 09 Oct 2009 21:31:19 +0100
Cc:
Delivery-date: Fri, 09 Oct 2009 13:31:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4ACF95C5.6090006@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: AcpJGuoWLlfub7CMRCm0r83rtMDX4wABIr1t
Thread-topic: [Xen-devel] Size limit on extra argument to xm create
User-agent: Microsoft-Entourage/12.20.0.090605
On 09/10/2009 20:57, "Mick Jordan" <Mick.Jordan@xxxxxxx> wrote:

>> Before I dig in to the code, I'm thought I'd check if this a limit in
>> xm or a more fundamental limit in the Xen guest interface. I can
>> imagine a hard limit of a page in the latter case, but that would be a
>> lot better than 1024.
> I was too hasty in attributing this to problems with shell variable
> length limits. There does seem to be a Xen limit of 1024 characters for
> the "extra" argument to "xm create", as shown below. The cmd_line value
> passed to the guest is truncated at 1024. So  my question above holds.

xen/include/public/xen.h:MAX_GUEST_CMDLINE should answer your question.

 -- Keir



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