]> git.karo-electronics.de Git - mv-sheeva.git/commit
virtio: console: Use a control message to add ports
authorAmit Shah <amit.shah@redhat.com>
Thu, 20 May 2010 04:15:48 +0000 (22:15 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 19 May 2010 12:45:49 +0000 (22:15 +0930)
commitf909f850d666e3dbac1ee7c9d5d83416bd02f84e
treea434032b27519ae0a92ab3a2d211fb240681f50c
parentc446f8fcc9fba3369bffb894b31756cf7a09f783
virtio: console: Use a control message to add ports

Instead of the host and guest independently enumerating ports, switch to
a control message to add ports where the host supplies the port number
so there's no ambiguity or a possibility of a race between the host and
the guest port numbers.

We now no longer need the 'nr_ports' config value. Since no kernel has
been released with the MULTIPORT changes yet, we have a chance to fiddle
with the config space without adding compatibility features.

This is beneficial for management software, which would now be able to
instantiate ports at known locations and avoid problems that arise with
implicit numbering in the host and the guest. This removes the 'guessing
game' part of it, and management software can now actually indicate
which id to spawn a particular port on.

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