<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemd-detect-virt and directive ConditionVirtualization wrongly return vm for xen dom0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77271#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemd-detect-virt and directive ConditionVirtualization wrongly return vm for xen dom0"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77271">bug 77271</a>
from <span class="vcard"><a class="email" href="mailto:Thomas.Blume@suse.com" title="Thomas Blume <Thomas.Blume@suse.com>"> <span class="fn">Thomas Blume</span></a>
</span></b>
<pre>In SUSE kernels /proc/xen/capabilities is created in privcmd.c (see
<a href="https://gitorious.org/opensuse/kernel/source/3f3ae894fe6c750ed2185cfdcc30a20d4becca88:drivers/xen/privcmd/privcmd.c">https://gitorious.org/opensuse/kernel/source/3f3ae894fe6c750ed2185cfdcc30a20d4becca88:drivers/xen/privcmd/privcmd.c</a>).
But it seems that other kernel flavours don't have this.
(See for example:
<a href="http://lists.xen.org/archives/html/xen-devel/2012-09/txtV0mkHOtzj_.txt">http://lists.xen.org/archives/html/xen-devel/2012-09/txtV0mkHOtzj_.txt</a>)
In older kernels it was not created automatically, but had to be mounted via
xenfs. (See:
<a href="http://old-list-archives.xenproject.org/xen-users/2009-07/msg00490.html">http://old-list-archives.xenproject.org/xen-users/2009-07/msg00490.html</a>). 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>