Merge branch 'master' of git://hg.uk.xensource.com/carbon/trunk/xen-api
CA-76603: Get PIF MTU from bridge, not interface

This is because there is not always an interface, e.g. in the
case of bonds on ovs.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-78628: avoid double-escaping PBD.plug/unplug errors

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-77758: always unplug the PCI device on shutdown (including performing an FLR)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-77758: manage the other-config:pci key using the same RBAC mechanism as the other-config "folders"

This makes the 'other_pcidevs_of_vm' function idempotent, so xapi can use it for regenerating xenopsd configuration.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-76725: translate the XenAPI actions_after_crash=preserve into xenopsd on_crash=Pause

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-76725: add a list of per-VM "action requests" to the diagnstics dump

This highlights any domains which have outstanding actions which have
not been processed (e.g. due to a bug)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-76725: log message improvements

'ran too quickly' should be 'crashed too quickly'

Crashes and unexpected domain suspends are strange enough to justify 'warn' rather than 'debug'

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-75632: added doc to VGPU.create call to fix warning when building the api java bindings.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Imported-by: John Else <john.else@citrix.com>
Fix windows serial debugging: the key was other_config:hvm_serial, not platform:hvm_serial

Although platform:hvm_serial makes more sense than other_config.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CP-3411: Updated the README file with the list of examples that will be included in the API bindings RTW deliverable.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Imported-by: John Else <john.else@citrix.com>
Add storage_impl_test to .gitignore

Signed-off-by: John Else <john.else@citrix.com>
Split VmExtra.t into VmExtra.persistent_t and VmExtra.non_persistent_t

VmExtra.persistent_t contains all the data we need to export to xapi
when suspending a VM, and re-import when resuming the VM. The data in
VmExtra.non_persistent_t is only required at first boot.

Signed-off-by: John Else <john.else@citrix.com>
Regenerate non-persistent state on domain restore.

Signed-off-by: John Else <john.else@citrix.com>
Move ty into VmExtra.persistent_t

Signed-off-by: John Else <john.else@citrix.com>
Recreate VBD/VIF information during VM_restore.

Since this is no longer held in the persistent part of VmExtra this
needs to be recreated when restoring a domain. This mirrors the
behaviour of VM_build.

Signed-off-by: John Else <john.else@citrix.com>
CA-77175: Enable resume of VMs suspended on pre-xenopsd hosts.

When resuming a VM, try to parse its last_booted_record according the
old S-expression format. If this succeeds, use the new xenops function
generate_state_string to convert the VM metadata into a new-format
xenops state, which xenopsd can use to resume the VM.

Signed-off-by: John Else <john.else@citrix.com>
Refresh consoles also if URI has changed

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Allow returning a task ID when handing over a connection to a daemon

This is useful when the xapi needs to wait for a particular task to
be completed by the daemon.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
xenopsd: switch back to old handshake protocol for migration

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>