chiark / gitweb /
systemd-detect-virt: detect s390 virtualization
authorThomas Blume <Thomas.Blume@suse.com>
Fri, 18 Jul 2014 13:13:36 +0000 (09:13 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 18 Jul 2014 13:20:13 +0000 (09:20 -0400)
commitf41925b4e442a34c93ad120ef1426c974a047ed1
treec7a6deb015ad4698f34335db8c16a27b08bb7ad4
parent7f035ea56bc0b75327c54e8aa4a56d57ed00dd6d
systemd-detect-virt: detect s390 virtualization

A system that is running on a logical partition (LPAR) provided by
PR/SM has access to physical hardware (except CPU). It is true that
PR/SM abstracts the hardware, but only for sharing purposes.

Details are statet at:

http://publib.boulder.ibm.com/infocenter/eserver/v1r2/topic/eicaz/eicazzlpar.htm

-->--
In other words, PR/SM transforms physical resources into virtual resources so
that many logical partitions can share the same physical resources.
--<--

Still, from the OS point of view, the shared virtual resource is real
hardware. ConditionVirtualization must be set to false if the OS runs
directly on PR/SM (e.g. in an LPAR).

[zj: reorder code so that variables are not allocated when #if-def is
false. Add commit message.]
man/systemd.unit.xml
src/shared/virt.c