xen/sysfs: Use XENVER_guest_handle to query UUID
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 16 Aug 2012 20:40:26 +0000 (16:40 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 23 Aug 2012 14:16:18 +0000 (10:16 -0400)
commit5c13f8067745efc15f6ad0158b58d57c44104c25
treed873f981be9f5b68de0203a3b30d65a97999ab4d
parentb8b0f559c7b1dcf5503817e518c81c9a18ee45e0
xen/sysfs: Use XENVER_guest_handle to query UUID

This hypercall has been present since Xen 3.1, and is the preferred
method for a domain to obtain its UUID. Fall back to the xenstore method
if using an older version of Xen (which returns -ENOSYS).

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/sys-hypervisor.c
include/xen/interface/version.h