Move /xapi/* -> /xenops/* in XenStore

It's really xenops that's using these paths so it makes sense that these paths
be under that name.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-6172: Add VBD.other_config:backend-kind

Note: this change is co-dependent on a change in xenopsd.

Blktap3 and kernel blkback need to co-exist and, since kernel blkback watches
keys in the /local/domain/0/vbd/ tree, the paths for blktap3 need to be moved.

A new key has been added to the other_config field of the VBD record which is
passed through to xenopsd to determine where to place the VBD's XenStore
entries.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-119831 Apply GRO settings to bond and vlan interfaces
Ethtool settings (Generic Receive Offload etc.) need to be set on the
bond and VLAN devices where applicable.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
CA-120529: Wait for receiver in X-host VDI.copy

The sender was completing the VDI.copy operation after it had sent the last of
the data. This meant that any subsequent operations on the new VDI could fail
with VDI_IN_USE because the datapath on the receiver had yet to be destroyed.

Now we forward the task to the receiving host and wait for it to set it as
complete.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
 CA-120529: Propagate VDI.copy receiver failures

If the receiver fails but the sender has already sent all its data then it
would have deemed the copy a success. This is dangerous since we can end up
with VDI corruption on the receiver and the impression that the copy was
successful.

Now we re-raise any errors encountered on the receiver back on the sender side
in the case of cross-host VDI.copy.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #1548 from simonjbeaumont/ca-120529-trunk

Fix race condition in X-host VDI copy
import_raw_vdi: use vhd-tool helper program

The vhd-tool helper is capable of O_DIRECT I/O and minimises
data copies.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
import_raw_vdi: log output from vhd-tool

This can be useful in diagnosing errors.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
HFX-990: Don't package sparse_dd in xapi-core RPM

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

Conflicts:
	xapi.spec.in
HFX 990: Correct vhd-tool path for 6.0.2 backport

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #1547 from djs55/upstream/VDI.copy-O_DIRECT

Use O_DIRECT for VDI.copy
Merge pull request #1526 from thomassa/gro-bond-ca-119831

CA-119831 Apply GRO settings to bond and vlan interfaces
Remove sparse_dd and dependencies on Nbd, Vhdlib

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #1549 from djs55/remove-old-libs

Remove sparse_dd and dependencies on Nbd, Vhdlib
Restore sparse_encoding: it's still needed to unmarshal sparse_dd's debug output

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Remove left-over "<<<<" markers

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #1550 from djs55/remove-old-libs

Restore sparse_encoding: it's still needed to unmarshal sparse_dd's debu...
smapiv2: Use the xcp-idl service API rather than a hand-rolled webserver

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
'xe sr-create' now allows device-config parameter values to be uploaded from files.

We can now say:

  xe sr-create type=libvirt name-label=ceph device-config:xml-filename=ceph-sr.xml

and the local file 'ceph-sr.xml' will be uploaded as the value for the device-config
key 'xml'.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
On PBD.plug, refresh global SR metrics by invoking SR.update

Signed-off-by: David Scott <dave.scott@eu.citrix.com>