From: Sander Eikelenboom Subject: Re: spawn second serial console/port Date: Fri, 12 Nov 2010 15:31:40 +0100 Message-ID: <969596253.20101112153140@eikelenboom.it> References: <1289508820.27318.2.camel@mobile> <1289569151.17299.20.camel@vase> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1289569151.17299.20.camel@vase> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Vasiliy G Tolstov Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Wouldn't a line like: serial =3D /dev/ttyS0 In the domU config work, and attach a console to that ? -- Sander Friday, November 12, 2010, 2:39:11 PM, you wrote: > 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 do= m0 >> > to domU ? >> >=20 >> > Can it possible without modification of xen sources? Odes it possible = to >> > write something in config file of domU? >> >=20 >> > If it not possible to do without modification of source code, can You >> > take me some info, what file/files i need to review? >> >=20 >>=20 >> it is possible and most of the code is out there somewhere but it won't >> work out of the box. >>=20 >> First you need yo checkout this branch: >>=20 >> git://xenbits.xen.org/people/sstabellini/linux-pvhvm.git 2.6.35-rc5-pvhv= m-v7 >>=20 >> give a look at 8d380069c8a00f89acb43f7c7b3a7fc4357a5cac and >> 0d5aa905d52d960ca25f5adccec7fda9fd7e8a78, they implement PV multiconsole >> support in the kernel (these commits are not upstream yet). >>=20 >> 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: >>=20 >>=20 >> 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: >> =20 >> init_console_info(&console, 0, &state); >> console.domid =3D domid; >> - if (d_config.num_vfbs) >> - console.consback =3D LIBXL_CONSBACK_IOEMU; >> + console.consback =3D LIBXL_CONSBACK_IOEMU; >> libxl_device_console_add(&ctx, domid, &console); >> libxl_device_console_destroy(&console); >> =20 >> - if (d_config.num_vfbs) >> - libxl_create_xenpv_qemu(&ctx, domid, d_config.vfbs, &dm_sta= rting); >> + init_console_info(&console, 1, NULL); >> + console.domid =3D domid; >> + console.consback =3D 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_startin= g); >> } >> =20 >> if (dm_starting) >>=20 >>=20 >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel > Sorry, but we use SLES =3D(=20 > 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...) --=20 Best regards, Sander mailto:linux@eikelenboom.it