All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org, M A Young <m.a.young@durham.ac.uk>
Subject: Re: [PATCH 1/7] tools/hotplug: fix conditions in systemd service files for dom0
Date: Fri, 24 Oct 2014 15:56:11 +0100	[thread overview]
Message-ID: <20141024145611.GD21422@zion.uk.xensource.com> (raw)
In-Reply-To: <1414160230-15131-2-git-send-email-olaf@aepfle.de>

On Fri, Oct 24, 2014 at 04:17:04PM +0200, Olaf Hering wrote:
> ConditionVirtualization= checks if systemd runs in some sort of guest.
> It is not supposed to detect host capabilities. The current
> implementation happens to work because systemd-detect-virt from v208
> returns also 'xen' in a dom0. In v210 and later 'none' is returned and
> no service files will be started.
> 
> Adjust the checks to detect a dom0 vs. native boot. Mounting xenfs
> depends on /proc/xen, but should only be done for pvops because xenfs
> exists only there. All other service files should not be started in
> domU. The file /proc/xen/capabilities exists in both dom0 and domU in a
> pvops kernel, but only in dom0 it contains 'control_d'. The existing
> ExecStartPre= check will prevent starting in a domU.
> 
> ConditionVirtualization=!xen is true in a dom0. But this check is broken
> in systemd v208, so its not used.
> 
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
> Cc: Ian Campbell <ian.campbell@citrix.com>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> Cc: Wei Liu <wei.liu2@citrix.com>

Acked-by: Wei Liu <wei.liu2@citrix.com>

  reply	other threads:[~2014-10-24 14:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 14:17 [PATCH 0/7] tools/systemd fixes Olaf Hering
2014-10-24 14:17 ` [PATCH 1/7] tools/hotplug: fix conditions in systemd service files for dom0 Olaf Hering
2014-10-24 14:56   ` Wei Liu [this message]
2014-10-24 14:17 ` [PATCH 2/7] tools/hotplug: fix clean target in systemd Makefile Olaf Hering
2014-10-24 14:17 ` [PATCH 3/7] tools/hotplug: add systemd xen-init-dom0 service Olaf Hering
2014-10-24 14:32   ` Wei Liu
2014-10-24 14:40     ` Olaf Hering
2014-10-24 14:48       ` Wei Liu
2014-10-24 14:17 ` [PATCH 4/7] tools/hotplug: xendomains now depends on xen-init-dom0 Olaf Hering
2014-10-24 14:17 ` [PATCH 5/7] tools/hotplug: systemd xenstored dependencies Olaf Hering
2014-10-24 14:56   ` Wei Liu
2014-10-24 14:17 ` [PATCH 6/7] tools/hotplug: every systemd service depends on proc-xen.mount Olaf Hering
2014-10-24 14:57   ` Wei Liu
2014-10-24 14:17 ` [PATCH 7/7] tools/hotplug: add helper script to visualize systemd dependencies Olaf Hering
2014-10-24 15:00   ` Wei Liu
2014-10-24 18:19 ` [PATCH 0/7] tools/systemd fixes Konrad Rzeszutek Wilk
2014-10-27 10:45   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141024145611.GD21422@zion.uk.xensource.com \
    --to=wei.liu2@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=m.a.young@durham.ac.uk \
    --cc=olaf@aepfle.de \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.