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>
[xenopsd] wire-up VM.platform:pvfb=true (i.e. PVFB for PV guests)

This went missing during the xenopsd migration (it was in xapi before)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge commit 'c02c35404d2b771a8842d65fff86f90600d5af8c'
Merge commit '55f941cc29254992237e7abfdd1737ea1ff7490f'
Merge commit '483fa879f42b59cfd61bac3da8f2db2f946b7d64'
Merge commit 'ea98b2fee918417593cf74d2910ab3627c11ccd7'
CA-76600: preserve /vm and /vss over localhost migrate

Rather than having the higher-level software special case localhost
migrate, we use reference counting to decide when to delete /vm
and /vss. When we create a new domain for a specific UUID, we
record the domain in
  /vm/<uuid>/domains/<domid> = <local domain path>

In domain destroy, we delete /vm and /vss if the domains directory
is empty.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CA-76600: preserve the rtc/timeoffset over migrate

Unfortunately the rtc/timeoffset can be changed dynamically by
the guest (via qemu) but isn't stored in the domain save record.
Therefore we need to both update our domain persistent state
in xenopsd (for migrate/resume) *and* update our VM config in
the higher-level toolstack (ie xapi) for start.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge commit '05e2a62bf90fabf22e62d3c9419cc89bbb2c4793'
Merge commit '8f400ee1bf93535d8c6f8b4e372f4d93776cdd25'
Merge commit '2d08161ccc3a055ff70df569390862f3384fe54c'