virtio: console: Accept console size along with resize control message
authorAmit Shah <amit.shah@redhat.com>
Wed, 5 May 2010 20:35:09 +0000 (02:05 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 19 May 2010 12:45:51 +0000 (22:15 +0930)
commit8345adbf96fc1bde7d9846aadbe5af9b2ae90882
tree30ea3bbed2d9f7c870bc1656a7fdd0e0929f5a2a
parent9778829cffd4d8d68c7e457645f958a82d4c4d8b
virtio: console: Accept console size along with resize control message

The VIRTIO_CONSOLE_RESIZE control message sent to us by the host now
contains the new {rows, cols} values for the console. This ensures each
console port gets its own size, and we don't depend on the config-space
rows and cols values at all now.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
CC: Christian Borntraeger <borntraeger@de.ibm.com>
CC: linuxppc-dev@ozlabs.org
CC: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c