]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: expose host uuid via sysfs.
authorZhigang Wang <zhigang.x.wang@oracle.com>
Mon, 7 May 2012 20:51:10 +0000 (16:51 -0400)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 1 Jun 2012 10:51:20 +0000 (14:51 +0400)
commita9a2f10cc4b7e07893110dd4f048a4ee481791ae
tree860a3c0f4c0cee27e70eeae5a0dde8ddbb75b296
parent8adf2b3091ca9069494eeb1b06d19aab4e3e2b46
xen: expose host uuid via sysfs.

When 'expose_host_uuid = 1' is specified in vm.cfg, xen will write the physical
host uuid to xenstore. This patch expose the host uuid to userspace via sysfs:

  $ cat /sys/hypervisor/host_uuid
  d51ac6d5-f8f1-416f-b089-17da51beb70d

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
drivers/xen/sys-hypervisor.c