virtio: console: Add file operations to ports for open/read/write/poll
authorAmit Shah <amit.shah@redhat.com>
Mon, 21 Dec 2009 16:19:30 +0000 (21:19 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:54 +0000 (13:52 +1030)
commit2030fa496d74b49220308eaccf656e2338019cfd
treecf8d937551d8bfefadbbc5389caaf587f2d0b13b
parentfb08bd274df61967f40d49c4625fe6ed75a69ab5
virtio: console: Add file operations to ports for open/read/write/poll

Allow guest userspace applications to open, read from, write to, poll
the ports via the char dev interface.

When a port gets opened, a notification is sent to the host via a
control message indicating a connection has been established. Similarly,
on closing of the port, a notification is sent indicating disconnection.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c
include/linux/virtio_console.h