virtio: console: Handle port hot-plug
authorAmit Shah <amit.shah@redhat.com>
Mon, 21 Dec 2009 16:52:08 +0000 (22:22 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:58 +0000 (14:22 +1030)
commit7f5d810dac70214d00b2440787535b6c7a73b6b7
treecef6d7fcdd30978a552200586d4a5fc4afb82843
parent88f251ac58b2460ed16ff619a020ad3ef365e607
virtio: console: Handle port hot-plug

If the 'nr_ports' variable in the config space is updated to a higher
value, that means new ports have been hotplugged.

Introduce a new workqueue to handle such updates and create new ports.

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