VDI.copy: add extra arguments for deltas, and copying "into"

VDI.copy now takes arguments:
 vdi: the disk to copy
 base: if present, we will copy differences from here only
 SR: if no "into" VDI is provided, a fresh VDI will be created
     in this SR
 into: if present, the existing disk we will write the blocks into

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
xe vdi-copy: add new arguments base-vdi-uuid and into-vdi-uuid

We also make sr-uuid optional, since only one of sr-uuid and
into-vdi-uuid should be provided.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
VDI.copy: add implementation for 'base' and 'into' arguments

If 'base' is provided then we will perform a delta-copy.
If 'into' is provided then we will copy into this existing VDI,
  otherwise we will create a fresh VDI in the SR given by 'sr'

However:
* if 'into' is read-only then we will fail with VDI_READONLY
* if 'into' is too small then we will fail with VDI_TOO_SMALL
* if 'base' is provided but the destination VDI (either 'into'
  or the fresh one we created in 'sr') does not support spareness
  then we fail with VDI_NOT_SPARSE

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
quicktest: add a test for new VDI.copy functionality

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-116417: Added Host_metrics to GC
Issue: The host metrics objects do not get GC'ed currently because of
which they keep accumulating over a period of time for invalid hosts

Fix: Creating two sets of host_metrics objects. One has all the
host_metrics objects both valid and invalid, and second has all
the host_metrics objects only for valid hosts. Removing all the
invalid host_metrics objects from the first set with the help
of second set.
Signed-off-by: Ravi Pandey <ravi.pandey@citrix.com>
Probe via SMAPIv2 where we can

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Add a trivial XML printer for probe results.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #1589 from ravippandey/CA-116417

CA-116417: Added Host_metrics to GC
Merge pull request #1590 from jonludlam/probe

Probe via SMAPIv2 where we can
Add documentation for PIF.properties

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #1593 from robhoes/master

Add documentation for PIF.properties
Switch off GRO by default (until issues with it have been solved)

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #1595 from robhoes/master

Switch off GRO by default (until issues with it have been solved)
Merge pull request #1581 from zli/xenserver/trunk-ring3/CP-6679

CP- 6679: VDI.copy with "base" and "into"