CP-8888: Add diagnostic stats reporting

Signed-off-by: John Else <john.else@citrix.com>
CP-8888: Stop stats reporter before exiting

Signed-off-by: John Else <john.else@citrix.com>
CA-143838: let network configure all physical and bond interfaces on startup

If a VLAN is used for storage and is configured to use jumbo frames (MTU =
9000), then XS does not immediately enable jumbo frames on the interface at
boot time. Specifically, if HA is enabled, the HA daemon is unable to access
the storage device, and blocks the host's startup process for a long time.

Networkd can be told to bring up interfaces and bridges at boot time, which is
before xapi is started, and before anything else may need the network. This is
done by marking the interface/bridge as "persistent". Currently, all
interfaces/bridges with an IP address in dom0 are made persistent. This
includes VLAN bridges, but not the interface that the VLAN is based on, which
is what caused the bug.

To simplify, this patch makes all physical and bond interfaces/bridge
persistent, besides all other interface/bridges that have an IP address.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Add clearwater-whetstone release to datamodel

Signed-off-by: John Else <john.else@citrix.com>
Update published version of PCI subsystem fields

These fields have been backported to Clearwater for hotfix Whetstone.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1890 from robhoes/persistent-trunk

CA-143838: let network configure all physical and bond interfaces on sta...
Use correct names for configurable options

All the configurable options were using the same string in the config file
("name") which was confusing Xcp_service.

This patch gives the correct name for use in the config file

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #1907 from simonjbeaumont/fix-configurable-options

Use correct names for configurable options
s/activate/deactivate in VDI.deactivate

Fix what looks like the result of some copy and paste errors

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #1908 from simonjbeaumont/fix-logging

s/activate/deactivate in VDI.deactivate
Merge pull request #1903 from johnelse/subsystem-id-version-fixes

Updates for Clearwater Whetstone
Merge pull request #1873 from johnelse/cp-8888

CP-8888: Add diagnostic stats reporting
Revert "CA-143944: Allow suspend when PV drivers are present (as before)"
Merge pull request #1911 from xapi-project/revert-1896-pvdrivers-master

Revert "CA-143944: Allow suspend when PV drivers are present (as before)...
Revert "CP-9366: Use HVM feature-flags instead of checking PV drivers"
Merge pull request #1912 from xapi-project/revert-1894-hvmlinux

Revert "CP-9366: Use HVM feature-flags instead of checking PV drivers"
CA-110585: Setting snapshot_time for VDI before passing it to SM during
VDI.snapshot

Issue:The vdi snapshot time was being set after SM returned from
creating vdi.

Fix: The snapshot_time is now set before it being passed to SM.

Signed-off-by: Ravi Pandey <ravi.pandey@citrix.com>
Merge pull request #1913 from ravippandey/CA-110585_tr3

CA-110585: Setting snapshot_time for VDI before passing it to SM during
CA-121347: Fix inconsistency in HA checks

1. It's currently possible to make a halted VM, with ha_restart_priority="restart", non-agile.
2. It's not possible to set ha_restart_priority="restart" on a non-agile, halted VM.
3. It's not possible to start a non-agile VM that has ha_restart_priority="restart"
4. It's not possible to make a running VM, with ha_restart_priority="restart", non-agile.
5. It's not possible to set ha_restart_priority="restart" on a non-agile, running VM.

Point #1 is inconsistent with point #2 - #2 should be allowed.

Signed-off-by: Phus Lu <phus.lu@citrix.com>
Merge pull request #1914 from phusl/CA-121347

CA-121347: Fix inconsistency in HA checks