From: "Jan Beulich" <jbeulich@novell.com>
To: Kevin Tian <kevin.tian@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
'Keir Fraser' <keir.fraser@eu.citrix.com>
Subject: RE: poweroff in 3.2 and 3.3
Date: Thu, 20 Nov 2008 08:18:03 +0000 [thread overview]
Message-ID: <49252B4B.76E4.0078.0@novell.com> (raw)
In-Reply-To: <0A882F4D99BBF6449D58E61AAFD7EDD601E23B3F@pdsmsx502.ccr.corp.intel.com>
>>> "Tian, Kevin" <kevin.tian@intel.com> 20.11.08 03:39 >>>
>>From: Keir Fraser [mailto:keir.fraser@eu.citrix.com]
>>Sent: Wednesday, November 19, 2008 9:22 PM
>>
>>On 19/11/08 13:18, "Jan Beulich" <jbeulich@novell.com> wrote:
>>
>>> The hypervisor appears to make the assumption that all but the vCPU
>>> XENPF_enter_acpi_sleep is being called on are down (in 3.2
>>because the
>>> sender of the event check IPI assumes the remote CPU is
>>idle, in 3.3 by
>>> and explicit check in __cpu_disable() - here we also have an
>>incorrect
>>> comment stating that this path can only be used when entering S3).
>
>Comment says "Only s3 is using this path", instead of "this path
>can only be used by s3". :-) At that time cpu online/offline is not
>supported and thus only s3 is the user on that path. If you look at
>latest xen upstream with cpu offline support, that comment went
>away.
But my point is that this is wrong (no matter how it's worded): entering
S5 also uses this path, and in that case there's nothing that stops
non-current vCPU-s of dom0.
>>> I can't, however, see how this would be guaranteed on the kernel side
>>> (and apart from that I don't think the hypervisor should be
>>dependent on
>>> kernel behavior here, even if it's dom0). Shouldn't therefore
>>> freeze_domains() not only freeze all DomU-s, but also all non-current
>>> vCPU-s of Dom0?
>>
>>Kevin Tian is probably best placed to answer this. I'm happy
>>to see this
>>added if he agrees.
>>
>
>Yes, original design depends on cooperation from dom0 kernel (
>offline other vcpus) and control panels (send virtual S3 or equivalent
>suspend command to all domains except dom0). It's expected that
>adminstrator should request system S3 on top of control panel,
>instead of accessing raw sysfs interface. Current code gives a final
>brute-force action to freeze domains. I agree that such guard should
>be also added to dom0's vcpus if following this policy.
I'll prepare a patch for this then.
>However I'm considering the point whether Xen can simply reject the
>s3 request, when observing non-current vcpus still alive. Domain can
>be in trouble if unaware of underlying sleep phase, such time keeping
>and softlockup warning. More seriously, domain with passthrough
>devices can't recover device state since it's even not notified to save
>context. Opinions?
I agree to this. But as per above, S3 (and S4 if ever supported) must be
distinguished from S5 in this regard.
Jan
next prev parent reply other threads:[~2008-11-20 8:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-19 13:18 poweroff in 3.2 and 3.3 Jan Beulich
2008-11-19 13:21 ` Keir Fraser
2008-11-20 2:39 ` Tian, Kevin
2008-11-20 8:00 ` Keir Fraser
2008-11-20 8:11 ` Tian, Kevin
2008-11-20 8:16 ` Keir Fraser
2008-11-20 8:21 ` Tian, Kevin
2008-11-20 8:51 ` Keir Fraser
2008-11-20 8:56 ` Tian, Kevin
2008-11-20 8:18 ` Jan Beulich [this message]
2008-11-20 8:18 ` Keir Fraser
2008-11-20 8:30 ` Jan Beulich
2008-11-20 8:36 ` Tian, Kevin
2008-11-20 8:19 ` Tian, Kevin
2008-11-20 8:31 ` Jan Beulich
2008-11-20 8:23 ` Tian, Kevin
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=49252B4B.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=keir.fraser@eu.citrix.com \
--cc=kevin.tian@intel.com \
--cc=xen-devel@lists.xensource.com \
/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.