]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Wed, 19 Sep 2012 14:59:05 +0000 (10:59 -0400)
commit968d33b331b4935ec161c83888b05f19e81255c5
tree7eafa365e149deded40c14c5f547dba47ef4721d
parent0cc20811ac111db7c303d6ca089fe0922ce3787b
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>
(cherry picked from commit 5c13f8067745efc15f6ad0158b58d57c44104c25)
drivers/xen/sys-hypervisor.c
include/xen/interface/version.h