Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-12 Thread Paul Vixie
Jakub Klama wrote: if it's never going to appear as /dev/console or any other tty-like device to the guest, then i won't care what it looks like on the host. however, you said it could carry resize events, which leads me to believe that the name (vertio-console) is not wrong, and it is a tty

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Jakub Klama
> Wiadomość napisana przez Paul Vixie w dniu 12.07.2016, o > godz. 02:39: > > Jakub Klama wrote: > >> It doesn't speak any protocol. virtio-console is a pipe. it pushes >> bytes back and forth. Name is indeed unfortunate, it should have >> been called virtio-pipe, but

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
Jakub Klama wrote: It doesn't speak any protocol. virtio-console is a pipe. it pushes bytes back and forth. Name is indeed unfortunate, it should have been called virtio-pipe, but virtio-console is how the virtio specification calls it. if it's never going to appear as /dev/console or any

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Jakub Klama
> Wiadomość napisana przez Paul Vixie w dniu 11.07.2016, o > godz. 23:53: > > > > Jakub Klama wrote: >> nmdm(4) emulates a serial port. how could one pass ioctls and signals via >> serial port? > > i think if bhyve arranged for its virtio_console device to be its control

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Jakub Klama
> Wiadomość napisana przez Peter Grehan w dniu 11.07.2016, > o godz. 23:52: > > Hi Jakub, > >> The purpose of virtio-console is to create arbitrary bidirectional, >> host-to-guest communication channels that bypass guest's network >> stack (don't require working networking

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
Jakub Klama wrote: nmdm(4) emulates a serial port. how could one pass ioctls and signals via serial port? i think if bhyve arranged for its virtio_console device to be its control terminal, it would receive SIGWINCH from the host kernel, which it could propagate to the guest's

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Peter Grehan
Hi Jakub, The purpose of virtio-console is to create arbitrary bidirectional, host-to-guest communication channels that bypass guest's network stack (don't require working networking in the guest). Could virtio-vsock be a better solution for this ? Docker's hyperkit has an implementation,

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Jakub Klama
> Wiadomość napisana przez Paul Vixie w dniu 11.07.2016, o > godz. 20:32: >>> nmdm could theoretically (as pty and pts both do) support >>> TIOCGWINSZ and SIGWINCH, though? or perhaps bhyve's virtio_console >>> device could offer pts(4) support? >> >> Yeah, virtio_console

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
Jakub Klama wrote: ... What I meant is that virtio-console can be used as a replacement for TCP/IP communication between host and guest (at least in some applications). For example, it can be used by the "guest additions" code to talk to the host. so, kermit? :-) nmdm could theoretically

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Jakub Klama
> Jakub Klama wrote: >> The purpose of virtio-console is to create arbitrary bidirectional, >> host-to-guest communication >> channels that bypass guest's network stack (don't require working networking >> in the guest). > > thanks. i had no idea that the existing console support required a

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
Jakub Klama wrote: The purpose of virtio-console is to create arbitrary bidirectional, host-to-guest communication channels that bypass guest's network stack (don't require working networking in the guest). thanks. i had no idea that the existing console support required a networking

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Jakub Klama
> Wiadomość napisana przez Paul Vixie w dniu 11.07.2016, o > godz. 19:27: > > fwiw, bhyve's existing console support is working fine for me. i use rtty > (from ports). my configuration looks like this: > > [mm1.redbarn:amd64] ls -l /usr/local/rtty/dev > total 3 > lrwxr-xr-x

Re: [Differential] D7185: Add virtio-console support to bhyve

2016-07-11 Thread Paul Vixie
fwiw, bhyve's existing console support is working fine for me. i use rtty (from ports). my configuration looks like this: [mm1.redbarn:amd64] ls -l /usr/local/rtty/dev total 3 lrwxr-xr-x 1 root wheel 11 May 18 2014 family@ -> /dev/nmdm2A lrwxr-xr-x 1 root wheel 11 May 17 2014 guests@ ->