Drivers: hv: Add a new driver to support host initiated backup
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 15 Mar 2013 19:30:06 +0000 (12:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 19:12:36 +0000 (12:12 -0700)
commit96dd86fa588169b745a71aedf2070e80f4943623
tree3affd55b169f7c3030b5ecb1d4caf700d31b28c2
parentc87059793dd02390b504b0292bdb024ffd68b822
Drivers: hv: Add a new driver to support host initiated backup

This driver supports host initiated backup of the guest. On Windows guests,
the host can generate application consistent backups using the Windows VSS
framework. On Linux, we ensure that the backup will be file system consistent.
This driver allows the host to initiate a  "Freeze" operation on all the mounted
file systems in the guest. Once the mounted file systems in the guest are frozen,
the host snapshots the guest's file systems. Once this is done, the guest's file
systems are "thawed".

This driver has a user-level component (daemon) that invokes the appropriate
operation on all the mounted file systems in response to the requests from
the host. The duration for which the guest is frozen is very short - a few seconds.
During this interval, the diff disk is comitted.

In this version of the patch I have addressed the feedback from Olaf Herring.
Also, some of the connector related issues have been fixed.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/Makefile
drivers/hv/hv_snapshot.c [new file with mode: 0644]
drivers/hv/hv_util.c
include/linux/hyperv.h
include/uapi/linux/connector.h
tools/hv/hv_vss_daemon.c [new file with mode: 0644]