]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: Bugfix Detect XEN Dom0 as no virtualization 2639/head
authorStefan Schallenberg aka nafets227 <infos@nafets.de>
Tue, 16 Feb 2016 20:36:12 +0000 (21:36 +0100)
committerStefan Schallenberg aka nafets227 <infos@nafets.de>
Tue, 23 Feb 2016 21:32:16 +0000 (22:32 +0100)
commit3f61278b56d7f97d0325d3bf6c20c32e4fcdb7ff
tree8e31deb2f2aa243e36da64cf130e609cc4408dd1
parent9f63a08d99bf41b51b7c11710b4e3349f10ccc5c
basic: Bugfix Detect XEN Dom0 as no virtualization

When running in XEN Dom0 the virtualization check:
1) detect_xen returns HYPERVISOR_NONE so next checks are executed
2) /proc/sys/hypervisor detects a XEN hypervisor
   it is lacking the special Dom0 detection as in detect_xen

With this patch, at the end of all virtualization checks we double-check if running in XEN Dom0 or DomU.
src/basic/virt.c