virtio-pci: move freeze/restore to virtio core
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Oct 2014 00:10:35 +0000 (10:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2014 23:54:55 +0000 (10:24 +1030)
commitc6716bae52f97347e25166c6270aa98693d9212c
tree0a8cf01f68e1eb0c0e403c24e9fbf1d76ccb3568
parent016c98c6fe0c914d12e2e242b2bccde6d6dea54b
virtio-pci: move freeze/restore to virtio core

This is in preparation to extending config changed event handling
in core.
Wrapping these in an API also seems to make for a cleaner code.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio.c
drivers/virtio/virtio_pci.c
include/linux/virtio.h