commit | f8fb5bc23a50a5398aa31a4e8c6dbbef53d2dec6 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@redhat.com> | Thu Dec 22 16:58:30 2011 +0530 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Thu Jan 12 15:44:45 2012 +1030 |
tree | a8f466179ba3afdce265607703ed280231e04e3c | |
parent | 6abd6e5a4404056e28be04958a57d0286883161a [diff] |
virtio: blk: Add freeze, restore handlers to support S4 Delete the vq and flush any pending requests from the block queue on the freeze callback to prepare for hibernation. Re-create the vq in the restore callback to resume normal function. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>