From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>,
Ross Lagerwall <ross.lagerwall@citrix.com>
Cc: Olaf Hering <olaf@aepfle.de>,
xen-devel@lists.xen.org, Ian Jackson <ian.jackson@eu.citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH] tools/hotplug: Don't ever kill xenstored
Date: Mon, 23 Feb 2015 17:01:19 +0000 [thread overview]
Message-ID: <54EB5CDF.2040502@citrix.com> (raw)
In-Reply-To: <20150223161909.GC20083@zion.uk.xensource.com>
On 23/02/15 16:19, Wei Liu wrote:
> On Mon, Feb 23, 2015 at 09:18:49AM +0000, Ross Lagerwall wrote:
>> Don't kill xenstored as part of the usual service shutdown process to
>> prevent hangs on shutdown where the kernel tries to unplug a VIF
>> after xenstored has exited.
>>
>> Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
> Do you run xendomains service? Aren't all guests shutdown by that
> service? And according to the dependency configuration, xenstored should
> not shutdown before xendomains is done?
We do not run the xendomains service. (It also doesn't necessarily shut
all domains down.)
In an ideal case with all guests cooperating, they are all shut down by
this point.
However in the uncooperative case, malicious or crashed guests, or dom0
configuration errors must not be able to block shutdown/reboot of dom0.
Xenstored has no state to sync to disk, and never used to be killed in
the sysvinit case; observe the warning in xencommons. Our testing has
shown regressions caused by the change in behaviour between sysvinit and
systemd when it comes to killing xenstored.
~Andrew
>
> Wei.
>
>> ---
>> tools/hotplug/Linux/systemd/xenstored.service.in | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/tools/hotplug/Linux/systemd/xenstored.service.in b/tools/hotplug/Linux/systemd/xenstored.service.in
>> index 0f0ac58..a5f836b 100644
>> --- a/tools/hotplug/Linux/systemd/xenstored.service.in
>> +++ b/tools/hotplug/Linux/systemd/xenstored.service.in
>> @@ -8,6 +8,7 @@ ConditionPathExists=/proc/xen/capabilities
>>
>> [Service]
>> Type=notify
>> +KillMode=none
>> Environment=XENSTORED_ARGS=
>> Environment=XENSTORED=@XENSTORED@
>> EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons
>> --
>> 2.1.0
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2015-02-23 17:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 9:18 [PATCH] tools/hotplug: Don't ever kill xenstored Ross Lagerwall
2015-02-23 16:19 ` Wei Liu
2015-02-23 17:01 ` Andrew Cooper [this message]
2015-02-23 17:25 ` Wei Liu
2015-02-24 7:54 ` Olaf Hering
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=54EB5CDF.2040502@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=olaf@aepfle.de \
--cc=ross.lagerwall@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@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.