* spawn second serial console/port
@ 2010-11-11 20:53 Vasiliy G Tolstov
2010-11-12 13:19 ` Stefano Stabellini
0 siblings, 1 reply; 7+ messages in thread
From: Vasiliy G Tolstov @ 2010-11-11 20:53 UTC (permalink / raw)
To: xen-devel
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?
Thank YOu.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: spawn second serial console/port
2010-11-11 20:53 spawn second serial console/port Vasiliy G Tolstov
@ 2010-11-12 13:19 ` Stefano Stabellini
2010-11-12 13:39 ` Vasiliy G Tolstov
0 siblings, 1 reply; 7+ messages in thread
From: Stefano Stabellini @ 2010-11-12 13:19 UTC (permalink / raw)
To: Vasiliy G Tolstov; +Cc: xen-devel@lists.xensource.com
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)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: spawn second serial console/port
2010-11-12 13:19 ` Stefano Stabellini
@ 2010-11-12 13:39 ` Vasiliy G Tolstov
2010-11-12 13:43 ` Stefano Stabellini
2010-11-12 14:31 ` Sander Eikelenboom
0 siblings, 2 replies; 7+ messages in thread
From: Vasiliy G Tolstov @ 2010-11-12 13:39 UTC (permalink / raw)
To: Stefano Stabellini; +Cc: xen-devel@lists.xensource.com
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@lists.xensource.com
> 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@selfip.ru>
Selfip.Ru
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: spawn second serial console/port
2010-11-12 13:39 ` Vasiliy G Tolstov
@ 2010-11-12 13:43 ` Stefano Stabellini
2010-11-12 14:31 ` Sander Eikelenboom
1 sibling, 0 replies; 7+ messages in thread
From: Stefano Stabellini @ 2010-11-12 13:43 UTC (permalink / raw)
To: Vasiliy G Tolstov; +Cc: xen-devel@lists.xensource.com, Stefano Stabellini
On Fri, 12 Nov 2010, Vasiliy G Tolstov 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 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@lists.xensource.com
> > 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...)
everything is possible, it just needs more work.
Of course you can install xl/libxenlight under SLES and use it to create
your domains. If you want to stick with the toolstack you have, then
you'll have to edit xend (xen-unstable.hg/tools/python/xen/xend), not a
very easy task.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: spawn second serial console/port
2010-11-12 13:39 ` Vasiliy G Tolstov
2010-11-12 13:43 ` Stefano Stabellini
@ 2010-11-12 14:31 ` Sander Eikelenboom
2010-11-12 14:33 ` Vasiliy G Tolstov
1 sibling, 1 reply; 7+ messages in thread
From: Sander Eikelenboom @ 2010-11-12 14:31 UTC (permalink / raw)
To: Vasiliy G Tolstov; +Cc: xen-devel@lists.xensource.com, Stefano Stabellini
Wouldn't a line like:
serial = /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 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@lists.xensource.com
>> 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...)
--
Best regards,
Sander mailto:linux@eikelenboom.it
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: spawn second serial console/port
2010-11-12 14:31 ` Sander Eikelenboom
@ 2010-11-12 14:33 ` Vasiliy G Tolstov
2010-11-12 15:43 ` Stefano Stabellini
0 siblings, 1 reply; 7+ messages in thread
From: Vasiliy G Tolstov @ 2010-11-12 14:33 UTC (permalink / raw)
To: Sander Eikelenboom; +Cc: xen-devel@lists.xensource.com, Stefano Stabellini
On Fri, 2010-11-12 at 15:31 +0100, Sander Eikelenboom wrote:
> Wouldn't a line like:
> serial = /dev/ttyS0
>
> In the domU config work, and attach a console to that ?
>
> --
> Sander
>
>
does it spawn additional console in pvm domU and saves ability to xm
console and vfb?
--
Vasiliy G Tolstov <v.tolstov@selfip.ru>
Selfip.Ru
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: spawn second serial console/port
2010-11-12 14:33 ` Vasiliy G Tolstov
@ 2010-11-12 15:43 ` Stefano Stabellini
0 siblings, 0 replies; 7+ messages in thread
From: Stefano Stabellini @ 2010-11-12 15:43 UTC (permalink / raw)
To: Vasiliy G Tolstov
Cc: Sander Eikelenboom, xen-devel@lists.xensource.com,
Stefano Stabellini
On Fri, 12 Nov 2010, Vasiliy G Tolstov wrote:
> On Fri, 2010-11-12 at 15:31 +0100, Sander Eikelenboom wrote:
> > Wouldn't a line like:
> > serial = /dev/ttyS0
> >
> > In the domU config work, and attach a console to that ?
> >
> > --
> > Sander
> >
> >
>
> does it spawn additional console in pvm domU and saves ability to xm
> console and vfb?
>
if I remember correctly that option doesn't have any meaning in a PV
config file.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-12 15:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-11 20:53 spawn second serial console/port Vasiliy G Tolstov
2010-11-12 13:19 ` Stefano Stabellini
2010-11-12 13:39 ` Vasiliy G Tolstov
2010-11-12 13:43 ` Stefano Stabellini
2010-11-12 14:31 ` Sander Eikelenboom
2010-11-12 14:33 ` Vasiliy G Tolstov
2010-11-12 15:43 ` Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.