CA-141520: Only use evtchn alignment hack for HVM guests

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

CA-141520: Only use evtchn alignment hack for HVM guests
Remove unused variable

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Allow type system to enforce assumptions about poll

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Declare Libxl call before use in bindings

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Remove commented out Libxl bindings

These are now in the Xen source tree.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Enable errors for all warnings

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #97 from simonjbeaumont/fix-warnings

Fix compiler warnings and enable errors for future warnings
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