Merge pull request #1313 from siddharthv/CA-106678

CA-106678:Check for pciback before attempting PCI Passthrough
CA-108913: Initialise parameters on the stack.

These four values are passed by pointer into libxc, and are only filled in if
relevent.  The bindings then convert the uninitialised variable into an
integer and pass it to xenops, which writes it to xenstore.

xenconsoled sees the write and, if the junk value looks like a valid guest
gfn, maps it and starts the console connect protocol by writing into it.

This causes HVM domain corruption if the junk value happens to be in the range
1 to max_pages.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
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>
CP-5095:Retrieve a list of SRs required to recover a VM through xapi

Signed-off-by: Akshay Ramani <akshay.ramani@citrix.com>
Merge pull request #1317 from euanh/CA-89974

CA-89974: Live migrate fails on IPv6-preferring hosts
CP-5113:Queue VM.unpause immediately after VM.start
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
networkd: report IPv4 address changes to xapi (as well as IPv6)

DHCP should now work well on most distros, and we can now get rid of the patch
to dhclient-script in dom0.hg (which only applies to a certain CentOS version).

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #1311 from johnelse/ca-109013

CA-109013: Fix cross-pool migration and reimplement platform_version check
Merge pull request #1330 from johnelse/ca-97402

CA-97402: Add a means of disabling modules in the domainjoin-cli command
Merge pull request #1340 from robhoes/cp5153

networkd: report IPv4 address changes to xapi (as well as IPv6)
networkd: do signal xapi when an IP address is removed

BobB pointed out that when a DHCP lease expires, the IP address may go away.
Therefore, a signal to xapi for it to update its DB makes sense.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Bump version to 1.9.13 and create a changelog

1.9.13 is a fairly arbitrary number, but it's the number that Dave Scott is
using in his Project Fusion branch (xapi+libvirt for ceph support). We should
be converging on 2.0.0 soon, but we don't know what we'll put in that version.
We've added a changelog as well, which we will commit to start populating
regularly.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Compile Xe command with dynamic linking

It was the last executable compiled with static linking.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Add pool_role_shared to rdd-client library.

This library use this module to add it to the library.
This is clearly detected by new CentOS 6.4 rpm tool which is able to
understand Ocaml library relationship inside rpms.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Bump version to 1.10.0 on suggestion from pull request

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Merge pull request #1344 from mcclurmc/changelog

Bump version to 1.10.0 and create a changelog
Adding new error SR_IS_CACHE_SR
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
CA-98077: Block SXM when VM has a VDI with on_boot=reset
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
Merge pull request #1345 from freddy77/build_fixes

Build fixes
Merge pull request #1316 from siddharthv/CA-108515

CA-108515: Prevent the destruction of SR configured as IntelliCache SR