virtio: console: don't assume a single console port.
authorAmit Shah <amit.shah@redhat.com>
Mon, 18 Jan 2010 13:45:05 +0000 (19:15 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:41 +0000 (14:22 +1030)
commit38edf58d73c28b082ec808aecdeb0ef2b92af049
treea0235a87189cc48efc4fb61a1a2d70ce386891e1
parent73954488b1cc74cf46d6b94b8d3175f45496bd32
virtio: console: don't assume a single console port.

Keep a list of all ports being used as a console, and provide a lock
and a lookup function.  The hvc callbacks only give us a vterm number,
so we need to map this.

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