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>
Merge commit 'e579e0415ac07fbd9cba0ca93b931e276a73423e'