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] spawn second serial console/port

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] spawn second serial console/port
From: Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
Date: Fri, 12 Nov 2010 16:39:11 +0300
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 12 Nov 2010 05:39:59 -0800
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selfip.ru; s=dk; h=Content-Transfer-Encoding:Mime-Version:Message-ID:Date:Content-Type:References:In-Reply-To:Cc:To:Reply-To:From:Subject; bh=ZHESdevkfiK9mAUZFxGFxfFhDdcLcJK0CfRleSheGIE=; b=KuytLE6ru136YanGHn2hZJiRikPmN5KRjpXdHT7hYd5IvXlGoIjfADsSqh5M23BbMzJEZvUzXBncsV8TJkKfLu1JLPHRGY59o6T9lYT265Ffj6zfJZe4kRnJsBpBaoH7;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1011121311390.2373@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>
Organization: Selfip.Ru
References: <1289508820.27318.2.camel@mobile> <alpine.DEB.2.00.1011121311390.2373@kaball-desktop>
Reply-to: v.tolstov@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2010-11-12 at 13:19 +0000, Stefano Stabellini wrote:
> On Thu, 11 Nov 2010, Vasiliy G Tolstov wrote:
> > I need second serial port (hvc1) how can i spawn it to connect from dom0
> > to domU ?
> > 
> > Can it possible without modification of xen sources? Odes it possible to
> > write something in config file of domU?
> > 
> > If it not possible to do without modification of source code, can You
> > take me some info, what file/files i need to review?
> > 
> 
> it is possible and most of the code is out there somewhere but it won't
> work out of the box.
> 
> First you need yo checkout this branch:
> 
> git://xenbits.xen.org/people/sstabellini/linux-pvhvm.git 2.6.35-rc5-pvhvm-v7
> 
> give a look at 8d380069c8a00f89acb43f7c7b3a7fc4357a5cac and
> 0d5aa905d52d960ca25f5adccec7fda9fd7e8a78, they implement PV multiconsole
> support in the kernel (these commits are not upstream yet).
> 
> Then you need to edit xl to add a second PV console (it is not possible
> to do that from the VM config file), a quick hack like this should work:
> 
> 
> diff -r 388c44a63613 tools/libxl/xl_cmdimpl.c
> --- a/tools/libxl/xl_cmdimpl.c        Wed Nov 10 14:56:06 2010 +0000
> +++ b/tools/libxl/xl_cmdimpl.c        Fri Nov 12 13:17:24 2010 +0000
> @@ -1686,13 +1686,17 @@ start:
>  
>          init_console_info(&console, 0, &state);
>          console.domid = domid;
> -        if (d_config.num_vfbs)
> -             console.consback = LIBXL_CONSBACK_IOEMU;
> +        console.consback = LIBXL_CONSBACK_IOEMU;
>          libxl_device_console_add(&ctx, domid, &console);
>          libxl_device_console_destroy(&console);
>  
> -        if (d_config.num_vfbs)
> -            libxl_create_xenpv_qemu(&ctx, domid, d_config.vfbs, 
> &dm_starting);
> +        init_console_info(&console, 1, NULL);
> +        console.domid = domid;
> +        console.consback = LIBXL_CONSBACK_IOEMU;
> +        libxl_device_console_add(&ctx, domid, &console);
> +        libxl_device_console_destroy(&console);
> +
> +        libxl_create_xenpv_qemu(&ctx, domid, d_config.vfbs, &dm_starting);
>      }
>  
>      if (dm_starting)
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


Sorry, but we use SLES =( 
Can it possible to use without xl, for example with libxen ? (I can
change the kernel, but change userspace is probably very hard to do...)

-- 
Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
Selfip.Ru


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

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