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] xl/libxl: introducing libxl_primary_console_exec

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xl/libxl: introducing libxl_primary_console_exec
From: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Date: Fri, 16 Jul 2010 18:40:42 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 16 Jul 2010 10:44:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1007161755250.21432@kaball-desktop>
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>
References: <alpine.DEB.2.00.1007161755250.21432@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2010-07-16 at 18:03 +0100, Stefano Stabellini wrote:
> Hi all,
> this patch introduces libxl_primary_console_exec: a new libxl function
> that finds the domid and console number corresponding to the primary
> console of a given vm. The domid might be different from the domid of
> the VM and the console number might not be 0 when using stubdoms.
> The caller (xl_cmdimpl.c in this case) has to make sure that the stubdom
> is already created before calling libxl_primary_console_exec in the hvm
> case. In the PV case libxl_primary_console_exec has to be called before
> libxl_run_bootloader.

... snip ...

>  int libxl_console_exec(struct libxl_ctx *ctx, uint32_t domid, int cons_num);
> +/* libxl_primary_console_exec finds the domid and console number
> + * corresponding to the primary console of the given vm, then calls
> + * libxl_console_exec with the right arguments (domid might be different
> + * if the guest is using stubdoms) */ 
> +int libxl_primary_console_exec(struct libxl_ctx *ctx, uint32_t domid_vm);

If this call has some none-obvious ordering constraints then that should
be mentioned in the header no?

Gianni


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

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