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>
Comment out vbd-backend-kind example in config

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #59 from simonjbeaumont/enable-blktap3

Comment out vbd-backend-kind example in config
Merge pull request #58 from robhoes/master

CA-128803: do not take timeoffset from last boot record
Remove unused obuild file

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Merge pull request #60 from euanh/master

Remove unused obuild file
Merge pull request #38 from djs55/xenserver-core-fixes

Partial resync with xenserver-core
CA-127183: qemu-dm does not accept this flag anymore. Passing the
'-priv' flag to the qemu-dm causes it to exit and VM creation fails.

Signed-off-by: Akshay <akshay.ramani@citrix.com>
s/Stringext/Xstringext/g

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Add vm pre-resume hook.

No hooks are currently triggered on resume - including resume after
a live migrate, which is the only possible time a hook could trigger
on a new VM on the target host.
Merge pull request #63 from jonludlam/great_stringext_rename

s/Stringext/Xstringext/g
arm: shadow_allocation_set is not supported; log failure and continue

Signed-off-by: David Scott <dave.scott@citrix.com>
Remove Re_str usage

It's not threadsafe

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
CA-136054: Make path to vgpu configurable

vgpu is currently a non-essential resource as it's not yet installed in
trunk. We may or may not want to change this in the future.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #71 from jonludlam/re_str_removal

Remove Re_str usage
Merge pull request #62 from BobBall/resume_hook

Add vm pre-resume hook.
CA-135934: remove the KiB suffix from an error message using bytes

Signed-off-by: David Scott <dave.scott@citrix.com>
Merge pull request #72 from djs55/CA-135934

CA-135934: remove the KiB suffix from an error message using bytes