xl: do not touch /vm in xenstore

We assume that the /vm xenstore subtree is owned by libxl, and we should
therefore not manipulate it.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
xl: use a temporary domain name when "restoring" a VM

This is needed for localhost migrations, during which we have two domains for a
single VM running on the host. Libxl insists on domain names being unique, so
we must use a temporary name for the receiving domain, and switch it back
afterwards.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
xl: di_of_uuid returns whether there are multiple domains for a VM or not

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
xl: only destroy private xs keys when destroying the last domain

The private keys are in a xenstore subtree that is based on the VM uuid
(/xapi/<uuid>/private). During a localhost migration, we must make sure that
this subtree is not deleted when we clean up the original domain.

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

Make localhost migration work in xenopsd-xenlight