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] [PATCH 17 of 19] tools: libxl: hide selection of device-

To: Ian Campbell <ian.campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 17 of 19] tools: libxl: hide selection of device-model, hvmloader and BIOS by default
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Thu, 14 Apr 2011 19:09:59 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Apr 2011 11:11:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20dcc3b31fd416636a69.1302607756@xxxxxxxxxxxxxxxxxxxxx>
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>
Newsgroups: chiark.mail.xen.devel
References: <patchbomb.1302607739@xxxxxxxxxxxxxxxxxxxxx> <20dcc3b31fd416636a69.1302607756@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Ian Campbell writes ("[Xen-devel] [PATCH 17 of 19] tools: libxl: hide selection 
of device-model, hvmloader and BIOS by default"):
> At the libxl API level:
...
>       * Add libxl_device_model_info.device_model_version allowing the
>         user to say which qemu version (e.g. old qemu-xen or qemu
>         upstream) they want for a domain.

Perhaps this ought to be a series of #defines, rather than an
integer ?  Integers have the virtue of sortability but it's not clear
that that's important; a series of #defines and corresponding strings
would be easier in the config file I think.

> -        if (strstr(dm_info->device_model, "stubdom-dm"))
> +        if (strstr(libxl__domain_device_model(&gc, dm_info), "stubdom-dm"))
>              *need_memkb += 32 * 1024;

Surely this strstr(,"stubdom-dm",) can be got rid of too, in favour of
"stubdom=1" or something ?

Ian.

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

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