[systemd-bugs] [Bug 77271] systemd-detect-virt and directive ConditionVirtualization wrongly return vm for xen dom0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 24 06:54:57 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=77271

--- Comment #12 from Thomas Blume <Thomas.Blume at suse.com> ---
In SUSE kernels /proc/xen/capabilities is created in privcmd.c (see
https://gitorious.org/opensuse/kernel/source/3f3ae894fe6c750ed2185cfdcc30a20d4becca88:drivers/xen/privcmd/privcmd.c).

But it seems that other kernel flavours don't have this.
(See for example:
http://lists.xen.org/archives/html/xen-devel/2012-09/txtV0mkHOtzj_.txt)
In older kernels it was not created automatically, but had to be mounted via
xenfs. (See:
http://old-list-archives.xenproject.org/xen-users/2009-07/msg00490.html). Not
sure wheter some flavours still use this.

So, I guess we cannot really rely on the fact that /proc/xen/capabilities is
always present in dom0.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140424/1d0608af/attachment.html>


More information about the systemd-bugs mailing list