]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: console: tell host of open ports after resume from s3/s4
authorAmit Shah <amit.shah@redhat.com>
Wed, 25 Apr 2012 09:10:39 +0000 (14:40 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 17 May 2012 09:14:33 +0000 (12:14 +0300)
commit0586af53f8b966e76c0dcfdd68e34e38f7fa30ac
tree11a35ac8a4739bae2225676abeab175ec8c1d160
parent15a231c2a1ca4830256f790b91bf0b0ca31baff1
virtio: console: tell host of open ports after resume from s3/s4

If a port was open before going into one of the sleep states, the port
can continue normal operation after restore.  However, the host has to
be told that the guest side of the connection is open to restore
pre-suspend state.

This wasn't noticed so far due to a bug in qemu that was fixed recently
(which marked the guest-side connection as always open).

CC: stable@vger.kernel.org # Only for 3.3
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/char/virtio_console.c