From: Amit Shah Date: Thu, 22 Dec 2011 11:28:28 +0000 (+0530) Subject: virtio: console: Add freeze and restore handlers to support S4 X-Git-Tag: v3.3-rc1~85^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b8f41d846990c3c1c8addbaed2cf53c3ef91d25;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell --- Reading git-diff-tree failed