diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-12-22 16:58:28 +0530 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 15:44:45 +1030 |
commit | 2b8f41d846990c3c1c8addbaed2cf53c3ef91d25 (patch) | |
tree | a3dbf456eb359650db0487d66d3594f1fa7be6c0 /net/ax25 | |
parent | a0e2dbfc223028b72a1c193f94fcd3f67253ba4a (diff) | |
download | linux-3.10-2b8f41d846990c3c1c8addbaed2cf53c3ef91d25.tar.gz linux-3.10-2b8f41d846990c3c1c8addbaed2cf53c3ef91d25.tar.bz2 linux-3.10-2b8f41d846990c3c1c8addbaed2cf53c3ef91d25.zip |
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>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions