From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: "Brown, Len" <len.brown@intel.com>,
"Tian, Kevin" <kevin.tian@intel.com>,
Xen-devel <xen-devel@lists.xensource.com>,
the arch/x86 maintainers <x86@kernel.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"Cihula, Joseph" <joseph.cihula@intel.com>
Subject: Re: Re: Paravirtualizing bits of acpi access
Date: Tue, 24 Mar 2009 10:28:18 -0700 [thread overview]
Message-ID: <49C91832.8090300@goop.org> (raw)
In-Reply-To: <200903241045.19194.bjorn.helgaas@hp.com>
Bjorn Helgaas wrote:
> On Tuesday 24 March 2009 01:05:43 am Jeremy Fitzhardinge wrote:
>
>> Tian, Kevin wrote:
>>
>>> OK, then it's safe to avoid that change. I had thought that dom0's 0-1M
>>> is identity-mapped to machine 0-1M... :-)
>>>
>> No, only the ISA 640k-1M region.
>>
>
> I'm speaking out of turn here because I don't work on Xen or
> suspend/resume. However, I do try to clean up random bits of
> ACPI, and I have to say this patch looks like a pain in the
> maintenance department. Having tests for a specific hypervisor
> is unpleasant. We don't want to end up with tests for a collection
> of hypervisors.
I agree. If we start to see other hypervisor-specific changes in this
area, we'd need to rethink this approach. But I'm not inclined to add a
layer of infrastructure to just deal with Xen. (IOW, abstract only when
there's something to abstract.)
> It looks like suspend becomes a weird hybrid of
> ACPI and Xen, which makes it harder to reason about future suspend
> changes. And all this discussion about 640k-1M and dom0 identity
> mapping and "there's no special effort to remap it" and whether
> there are conflicts makes me nervous. There's no way all those
> assumptions can be remembered or verified five years down the road.
>
Well, I think Kevin was over-complicating things in his own mind. The
upshot is that the normal "running on bare metal" code can do its normal
thing, and if we happen to be running under Xen we can make it a no-op.
In other words, the acpi developers don't really need to worry about the
"running under Xen case", for the most part.
The two changes this patch makes are, unfortunately, unavoidable:
1. Turn the final "enter sleep" into a hypercall, so that Xen can do
all the low-level context save/restore. The normal baremetal case
is still localized in acpica/hwsleep.c, but it (may) make an
excursion into arch code to see if it should do something else, and
2. Directly enter the sleep state, rather than save cpu context
(which Xen does)
Though, come to think of it, perhaps there's no harm in letting the
kernel do its own state-saving. I'll check.
J
next prev parent reply other threads:[~2009-03-24 17:28 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-21 6:09 Paravirtualizing bits of acpi access Jeremy Fitzhardinge
2009-03-21 17:10 ` Rafael J. Wysocki
2009-03-22 4:26 ` Jeremy Fitzhardinge
2009-03-22 11:28 ` Rafael J. Wysocki
2009-03-22 13:14 ` Ingo Molnar
2009-03-22 13:17 ` Rafael J. Wysocki
2009-03-22 17:07 ` Jeremy Fitzhardinge
2009-03-22 18:00 ` Rafael J. Wysocki
2009-03-23 3:29 ` Tian, Kevin
2009-03-23 18:20 ` [Xen-devel] " Rafael J. Wysocki
2009-03-23 19:07 ` Jeremy Fitzhardinge
2009-03-23 20:27 ` Rafael J. Wysocki
2009-03-23 20:42 ` Jeremy Fitzhardinge
2009-03-24 5:14 ` Jeremy Fitzhardinge
2009-03-24 5:33 ` Tian, Kevin
2009-03-24 5:42 ` Jeremy Fitzhardinge
2009-03-24 5:45 ` Tian, Kevin
2009-03-24 7:05 ` Jeremy Fitzhardinge
2009-03-24 16:45 ` Bjorn Helgaas
2009-03-24 17:28 ` Jeremy Fitzhardinge [this message]
2009-03-24 17:51 ` Cihula, Joseph
2009-03-27 21:57 ` Len Brown
2009-03-27 23:20 ` Jeremy Fitzhardinge
2009-03-28 1:01 ` Len Brown
2009-03-28 2:19 ` Tian, Kevin
2009-03-28 3:19 ` Jeremy Fitzhardinge
2009-03-28 13:56 ` Rafael J. Wysocki
2009-03-24 23:40 ` Tian, Kevin
2009-03-24 23:51 ` Tian, Kevin
2009-03-25 0:45 ` Jeremy Fitzhardinge
2009-03-23 19:52 ` [Xen-devel] " Matthew Garrett
2009-03-23 20:22 ` Rafael J. Wysocki
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=49C91832.8090300@goop.org \
--to=jeremy@goop.org \
--cc=bjorn.helgaas@hp.com \
--cc=joseph.cihula@intel.com \
--cc=kevin.tian@intel.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=x86@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox