CA-138303: Don't ask fe to syslog for qemu/demu.

Not to be merged until demu gains a syslog facility.

Imported from creedence changeset 4fd6d52b5c09b015f20da820ac41fb6dddd8c01d

Signed-off-by: Jon Ludlam <jonatham.ludlam@citrix.com>
Imported-by: John Else <john.else@citrix.com>
CP-9068: Revert "CA-73960: avoid allocating debug console for HVM"

This reverts commit 70ac27a1fb2ec8a072759fa153e1160e5153fe48.

Signed-off-by: Akshay <akshay.ramani@citrix.com>
Merge pull request #99 from akshayramani/CP-8068

CP-9068: Revert "CA-73960: avoid allocating debug console for HVM"
Merge pull request #98 from johnelse/qemu-fe-syslog-trunk

CA-138303: Don't ask fe to syslog for qemu/demu.
Fix error message in vif hotplug script

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Switch from domid- to uuid-based private XS keys in classic backend

The "private" xenstore keys are keys that are used to store
xapi/xenopsd-specific information for use by device hotplug scripts and
similar. The classic backend used to store these at /xapi/<domid>/private/.
This patch moves them to /xapi/<uuid>/private. This makes the classic backend
more similar to the libxl backend, such that the hotplug scripts can be merged.

We have to be careful in particular with localhost migration (and anything
using localhost migration, such as VDI migration), where multiple domains exist
for the same VM at the same time on the same host. To avoid race conditions, we
must keep the hotplug keys in domid-based subtrees (moved from
/xapi/<domid>/hotplug to /xapi/<uuid>/hotplug/<domid>). We also must be sure to
not accidentally remove the keys we still need on domain destroy.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-141723: Allocate one evtchn per-VCPU in alignment hack

When allocating event channels at start-of-day for HVM guests so that they're
backwards-compatible with old PV drivers (see c1a4c42), make sure we allocate
one event channel for each VCPU since each VCPU will have an IO req. event
channel bound.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #100 from robhoes/vif

Switch from domid- to uuid-based private XS keys in classic backend
Merge pull request #101 from simonjbeaumont/ca-141723

CA-141723: Allocate one evtchn per-VCPU in alignment hack
Move xenstore.ml into lib

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Add more dom0 XS keys on startup

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

Add more dom0 XS keys on startup
CA-141364: Remove wasted hypercalls on domain build

The HPET and VPT are enabled or otherwise within Xenguest. Doing so here is
unnecessary.

Also, at the time of writing, the binding for VPT alignment is
setting the HPET again by mistake:

https://github.com/xapi-project/xen-api-libs-transitional/blob/d6cf85fd/xenctrlext/xenctrlext_stubs.c#L128-L135

These will be removed.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-141364: Don't ignore errors from libxc on domain build

Failures from these calls are fatal and we should not continue with any VM
build (start, resume) operations if these calls return an error.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CA-141364: Remove redundant (and erroneous bindings)

We no longer need these bindings since this work is done in Xenguest. Also, it
appears both of the bindings mistakenly make the same call into libxc.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #103 from simonjbeaumont/ca-141364

CA-141364: Handle errors during domain build