Skip to content

Commit

Permalink
xen: add /sys/hypervisor support
Browse files Browse the repository at this point in the history
Adds support for Xen info under /sys/hypervisor.  Taken from Novell 2.6.27
backport tree.

Signed-off-by: Jeremy Fitzhardinge <[email protected]>
  • Loading branch information
Jeremy Fitzhardinge committed Mar 30, 2009
1 parent 6d02c42 commit cff7e81
Show file tree
Hide file tree
Showing 4 changed files with 490 additions and 1 deletion.
10 changes: 10 additions & 0 deletions drivers/xen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ config XEN_COMPAT_XENFS
a xen platform.
If in doubt, say yes.

config XEN_SYS_HYPERVISOR
bool "Create xen entries under /sys/hypervisor"
depends on XEN && SYSFS
select SYS_HYPERVISOR
default y
help
Create entries under /sys/hypervisor describing the Xen
hypervisor environment. When running native or in another
virtual environment, /sys/hypervisor will still be present,
but will have no xen contents.
3 changes: 2 additions & 1 deletion drivers/xen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ obj-y += xenbus/
obj-$(CONFIG_HOTPLUG_CPU) += cpu_hotplug.o
obj-$(CONFIG_XEN_XENCOMM) += xencomm.o
obj-$(CONFIG_XEN_BALLOON) += balloon.o
obj-$(CONFIG_XENFS) += xenfs/
obj-$(CONFIG_XENFS) += xenfs/
obj-$(CONFIG_XEN_SYS_HYPERVISOR) += sys-hypervisor.o
Loading

0 comments on commit cff7e81

Please sign in to comment.