Partial revert of 9ccef3ed2505ff47ea2f601308bf0e8a988c6a11

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Revert of ef3bf4bdfb3ccbe1b54c0514a53777a1dc43ece2

With a slight change to Io.read_int invocation

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
CP-8784: Add 64-bit read/write to Io module

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-8784: Support fd mappings in Cancellable_subprocess

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-8784: Use new suspend-image format

Detect older formats and pipe through conversion tool. Newer formats have
a proper framing protocol.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>

Conflicts:
	myocamlbuild.ml
	setup.ml
	xc/domain.ml
CP-8784: Move signatures into Suspend_image module

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-8784: Get rid of filesystem on suspend images

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-8784: Replace Thread.delay with Mutex/Condition

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-8784: Factor conversion script into Suspend_image

Put with_conversion_script wrapper into the Suspend_image module so that the
behvaiour of Domain.restore_common is clearer.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-8784: Factor out reading of legacy qemu sig

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-8782: Document new suspend image framing format

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Update qemu-dm path for Xen-4.4

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #84 from simonjbeaumont/qemu-dm-path

Update qemu-dm path for Xen-4.4
CA-140004: qemu cancel paths should be domain-local

There were being made with respect to the backend domain
which is usually 0.

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Merge pull request #85 from jonludlam/CA-140004

CA-140004: qemu cancel paths should be domain-local
Merge commit 'e579e0415ac07fbd9cba0ca93b931e276a73423e'