chiark / gitweb /
systemd-detect-virt: only discover Xen domU
authorThomas Blume <Thomas.Blume@suse.com>
Fri, 6 Jun 2014 14:36:45 +0000 (16:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Jun 2014 16:16:47 +0000 (18:16 +0200)
commit37287585b6ba9a55065c8f94458f6db3c0abe0af
tree1cee8ba99a220e0276f6a440849be726c3988996
parent299a55075d1bf478b9190191caefd5c1b934340d
systemd-detect-virt: only discover Xen domU

The current vm detection lacks the distinction between Xen dom0 and Xen domU.
Both, dom0 and domU are running inside the hypervisor.
Therefore systemd-detect-virt and the ConditionVirtualization directive detect
dom0 as a virtual machine.

dom0 is not using virtual devices but is accessing the real hardware.
Therefore dom0 should be considered the virtualisation host and not a virtual
machine.

https://bugs.freedesktop.org/show_bug.cgi?id=77271
src/shared/virt.c