Replace /usr/libexec/xenopsd with the more standard /usr/lib/xenopsd

We're not respecting the variables set in the configure script, instead
we're hardcoding paths in the vif script and udev rules.

Since /usr/lib/ is more standard than /usr/libexec/ this patches moves
everything to /usr/lib/

NB any .spec files referencing these scripts will need changing.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
xc: ensure domain 0 xenstore entries exist on startup

xenops_server_xen maps uuids onto domids via the xenstore entries

  /vm/dom0-uuid/domains/0
  /vm/dom0-uuid/domains/0/create-time

If these don't exist then a 'driver domain' exception is thrown
when trying to create a device backend.

Note this is done before we daemonize and therefore we must throw
away the cached xenstore client, since it will be broken by the
fork().

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
configure: preprocess vif scripts and udev rules to substitute LIBEXEC(dir)

It turns out the flexibility is useful to accommodate both CentOS and Ubuntu
properly.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
CP-6172: Support configurable VBD backend path in Xenstore

This allows Blktap2 and Blktap3 to coexist.

Note: the backend path is specified by a new "backend-kind" key in the
extra_backend_keys of the VBD metadata.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Re-enable build of watch_test binary
Added timeout testing to watch_test (FIXME)

The watch_test is not run as part of the build since it needs to be run in
dom0. Somewhere along the line, watches became broken in that they do not
timeout after the specified time.
Merge pull request #31 from simonjbeaumont/cp-6172-xenops-part

Separate Blktap2 and Blktap3 in XenStore
CP-6172: Add updates for vbd3 devices
Merge pull request #53 from simonjbeaumont/cp-6172-xenops-part

CP-6172: Add updates for vbd3 devices
Blkfront will always use .../vbd/... path
Merge pull request #54 from simonjbeaumont/cp-6172-xenops-part

Blkfront will always use .../vbd/... path
Make default vbd-backend vbd3
Make default_vbd_backend_kind configurable option

This can be set by specifying default-vbd-backend-kind in xenopsd.conf.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
CP-6172: Remove baked-in vbd XenStore paths
Make default VBD backend 'vbd'
Merge pull request #55 from simonjbeaumont/ea-1158-tr3

Configurable VBD backends
Fix xenopsd hardcoded path to qemu-dm. Pick the correct path for the qemu-dm.

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

Fix xenopsd hardcoded path to qemu-dm. Pick the correct path for the qem...
VGPU: Fixed conflicts

Imported from xen-api.git 44c984c5dbc4dff2f806f76e362d7533b4743e35

Signed-off-by: Vincent Bernardoff <vincent.bernardoff@citrix.com>
Imported-by: John Else <john.else@citrix.com>
Add 'vgpu' option to vga platform key

Imported from xen-api.git 92a8eec96e67664609ab1cdfdf15e7b9e7ec1ed8

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Imported-by: John Else <john.else@citrix.com>