CA-109476: Read rrd plugin timestamp as int64

It's written as an int64 by the plugin library. Also, a standard int
isn't big enough to hold a typical Unix epoch.

This value isn't actually used, rrdd just relies on it changing so
that the plugin payload's checksum changes even if the data source
values stay the same. However, it would be nice if it's correct in
case we do ever want to use it!

Signed-off-by: John Else <john.else@citrix.com>
Remove a modprobe warning in new systems.

New modprobe give a warning if configuration files do not end with .conf.
Add .conf to /etc/modprobe.d/blacklist-bridge in order to avoid this
warning.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
CA-111270: Document VM_guest_metrics.memory as holding no data.
Nothing has been written to this field since before George
(XS5.5 release in 2008). It was disabled in favour of the RRD
data sources.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
CA-111269: Document VM_guest_metrics.disks as holding no data.
Nothing has been written to this field since before XenServer 5.0.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
CA-98090: (XOP-206) Block SXM when VM cannot match any bridge names on
destination.
Revert "CA-84673: Metadata import should create a network if it can't find one"

This reverts commit 99f82b7cecb961f9bf0da966a38e67bae618653b.
CA-95722:Prevent migration of VM's onto hosts that are in maintenance mode.
Signed-off-by: Akshay Ramani <akshay.ramani@citrix.com>
Fix indent
Signed-off-by: Akshay Ramani <akshay.ramani@citrix.com>
Merge pull request #1365 from akshayramani/CA-95722.a

CA-95722:Prevent migration of VM's onto hosts that are in maintenance mo...
Use more modern upstream libraries.

* Remove Fhs.vardir - this is now /var/lib/xcp
* Use Xenstore library from ocaml-xenstore
* Use Xenctrl library from ocaml-xen-lowlevel-libs
* Syslog -> Syslog_transitional to avoid conflict with upstream package
* Fix ocamldoc to work with Ocaml 4.00.1
* Use upstream rpclib instead of xen-api-libs fork
* Remove some unused code
* Remove some instances of xiu checks

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Respond to comments on PR#1376

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #1376 from jonludlam/ea-1254-unified

Use more modern upstream libraries.
CA-108916: add call to V6rpc.get_current_edition API

We add this API so that when v6d returns a failure on apply_edition, xapi is
able to find out the correct edition to set itself to. This fixes a "bug"
(design decision, really) where 1) v6d holds a valid license, 2) xapi
apply_edition with bad license-server url, 3) v6d release license, and fails to
check out new license, 4) xapi remains at the current licensed edition, but v6d
doesn't hold the license for that edition.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Add nestedhvm support for xenguest

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
Merge pull request #1386 from zli/xenserver/nestedhvm

Add nestedhvm support for xenguest
CA-105903: vbd-unplug --force works regardless of surprise-remove state

This is just acknowledging the changes that were introduced in Tampa, and not a
change in behaviour since Tampa.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Merge pull request #1378 from mcclurmc/ca108916-get-current-edition

CA-108916: add call to V6rpc.get_current_edition API
CA-112572: networkd: protect IP watcher thread with an exception handler

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

CA-112572: networkd: protect IP watcher thread with an exception handler
CP-5679: Allow vif_locking=disabled with vSwitch controller

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CA-111029: Switch to the C xenguest.