xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	Paul Wozney <paul@wozney.ca>
Cc: xen-devel@lists.xensource.com, Mike Viau <viaum@sheridanc.on.ca>
Subject: Re: FW: [Xen-users] Re: Squeeze and Xen 4 - booting error when loading xen-hypervisor-4.0-amd64
Date: Wed, 16 Mar 2011 08:38:46 +0000	[thread overview]
Message-ID: <4D8085260200007800036C29@vpn.id2.novell.com> (raw)
In-Reply-To: <20110316032431.GD7905@dumpdata.com>

>>> On 16.03.11 at 04:24, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> On Mon, Mar 14, 2011 at 03:51:08PM -0700, Paul Wozney wrote:
>> On Mon, Mar 14, 2011 at 04:49, Pasi Kärkkäinen <pasik@iki.fi> wrote:
>> 
>> >
>> > Did he try booting the latest dom0 kernel from xen.git xen/stable-2.6.32.x
>> > branch?
>> >
>> 
>> I compiled this kernel and I get a different kernel panic.
> 
> What type of config did you use? Did you try the one in PVOPS Wiki page?
> 
> Is this happening only on this specific machine?
> 
> What does your DSDT look like? Can you run iasl on it to decompile?
> 
> This looks like a bug we hit in the past where Jan Beulich decoded
> the DSDT and found out that it was doing somethign really silly.
> Can't remember the details .. maybe Jan does.

Yes, it very much looks like that. The problem was that some
method in the DSDT tried to access a field in the IO-APIC's MMIO
range, but that range isn't available to any domain (including
Dom0).

On non-pvops, and ioremap() attempt like this will simply fail, but
on pv-ops (using native's set_pte_at(), which has no return
value) the attempt to establish the page table entry will simply
fault, leading to a kernel panic in cases like this.

Of course it is bogus for the firmware to have an ACPI method
access IO-APIC space - that should be under the exclusive
control of the OS (and hence your first and best option is to
obtain fixed firmware).

Nevertheless, if this was just a read (don't recall whether it was
in the original case), it would seem possible to allow this,
utilizing the mmio_ro_ranges functionality introduced for MSI-X's
table and PBA.

One problem with this is that it could have bad effects in terms
of hiding future latent kernel bugs in that the actual IO-APIC
handling code might wrongly establish a mapping of the real
IO-APIC page - in this context, outright failing the mapping
attempt is certainly better than silently converting a writeable
mapping to a read-only one. But obviously Xen can't distinguish
one from the other.

Jan

      reply	other threads:[~2011-03-16  8:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTikMUWxGpCjNLAH9yAhrpOYK9ifgvS7pELsU6cu=@mail.gmail.com>
     [not found] ` <AANLkTi=vREL5fx8aUkMgrVwqecs36Y7ghh60h=PmSJt1@mail.gmail.com>
2011-03-14 11:42   ` FW: [Xen-users] Re: Squeeze and Xen 4 - booting error when loading xen-hypervisor-4.0-amd64 Mike Viau
2011-03-14 11:49     ` Pasi Kärkkäinen
2011-03-14 22:51       ` Paul Wozney
2011-03-15 11:37         ` Mike Viau
2011-03-16  3:24         ` Konrad Rzeszutek Wilk
2011-03-16  8:38           ` Jan Beulich [this message]

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=4D8085260200007800036C29@vpn.id2.novell.com \
    --to=jbeulich@novell.com \
    --cc=konrad.wilk@oracle.com \
    --cc=paul@wozney.ca \
    --cc=viaum@sheridanc.on.ca \
    --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;
as well as URLs for NNTP newsgroup(s).