Skip to contentSkip to conversation

Why is virtio_console not a tty?

DISCUSSION H. Peter Anvin 2 participants 3 messages Jun 12, 2014 – Jun 13, 2014 virtio core

lore
Share & tools
lore
#0 lore raw

I have gotten scattered reports of strange problems caused by the fact that virtio_console doesn't behave like a normal tty (support termios and so on.) This seems to be an odd restriction -- is there any fundamental reason for this design choice?

-hpa

#1 lore raw
Quoted 4 lines · H. Peter Anvin

I have gotten scattered reports of strange problems caused by the fact that virtio_console doesn't behave like a normal tty (support termios and so on.) This seems to be an odd restriction -- is there any fundamental reason for this design choice?

Not that I know. I tacked it into hvc_console which provided the glue to make it a console. Avoided me digging into console implementation, which is pretty horrible.

Given my ignorance, how much change do we need to make it behave like a TTY?

Cheers,
Rusty.

#2 lore raw
Quoted 6 lines · Rusty Russell
Quoted 4 lines · H. Peter Anvin

I have gotten scattered reports of strange problems caused by the fact that virtio_console doesn't behave like a normal tty (support termios and so on.) This seems to be an odd restriction -- is there any fundamental reason for this design choice?

Quoted 7 lines

Not that I know. I tacked it into hvc_console which provided the glue to make it a console. Avoided me digging into console implementation, which is pretty horrible.

Given my ignorance, how much change do we need to make it behave like a TTY?

hvc_console.c seems to set up a tty subsystem, so that is really confusing...

-hpa