]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xen: add sysfs node for guest type
authorJuergen Gross <jgross@suse.com>
Wed, 14 Jun 2017 15:12:45 +0000 (17:12 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 15 Jun 2017 06:50:32 +0000 (08:50 +0200)
commit4a4c29c96dde0eefd69054fd9e6b4255d4717799
treed13f72b7468d13b163ec0102014d718c32ea66d3
parentdb985220778e200a935c6d8afddb2b1e32554375
xen: add sysfs node for guest type

Currently there is no reliable user interface inside a Xen guest to
determine its type (e.g. HVM, PV or PVH). Instead of letting user mode
try to determine this by various rather hacky mechanisms (parsing of
boot messages before they are gone, trying to make use of known subtle
differences in behavior of some instructions), add a sysfs node
/sys/hypervisor/guest_type to explicitly deliver this information as
it is known to the kernel.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Documentation/ABI/testing/sysfs-hypervisor-xen [moved from Documentation/ABI/testing/sysfs-hypervisor-pmu with 67% similarity]
MAINTAINERS
drivers/xen/sys-hypervisor.c