Amit Shah 2b8f41d846 virtio: console: Add freeze and restore handlers to support S4
Remove all vqs and associated buffers in the freeze callback which
prepares us to go into hibernation state.  On restore, re-create all the
vqs and populate the input vqs with buffers to get to the pre-hibernate
state.

Note: Any outstanding unconsumed buffers are discarded; which means
there's a possibility of data loss in case the host or the guest didn't
consume any data already present in the vqs.  This can be addressed in a
later patch series, perhaps in virtio common code.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-01-12 15:44:45 +10:30
..
2012-01-12 15:44:44 +10:30
2012-01-03 22:54:07 -05:00
2012-01-09 14:44:15 -08:00
2012-01-08 13:28:33 -08:00
2012-01-09 14:39:22 -08:00
2012-01-09 14:44:15 -08:00
2012-01-12 15:44:42 +10:30
2012-01-09 14:30:28 -08:00
2012-01-02 13:04:55 +01:00