All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xensource.com>
To: Bastian Blank <bastian@waldi.eu.org>, xen-devel@lists.xensource.com
Subject: Re: [RESEND] Linux 2.3.23-rc3 on Xen 3.1 crashs
Date: Wed, 29 Aug 2007 15:22:34 +0100	[thread overview]
Message-ID: <C2FB3FBA.14FF2%keir@xensource.com> (raw)
In-Reply-To: <20070829141307.GA9199@wavehammer.waldi.eu.org>

On 29/8/07 15:13, "Bastian Blank" <bastian@waldi.eu.org> wrote:

> On Wed, Aug 29, 2007 at 02:09:23PM +0100, Keir Fraser wrote:
>> Sounds like Bastian already worked out the problem is we do not allow
>> X86_CR4_MCE to be cleared. Xen should probably just ignore attempts to
>> change that bit. Even better would be to remember guest value of that flag
>> and return appropriate value on reads of CR4. But that's more than required
>> here, I think.
> 
> What should happen with the upcoming MCE support in Xen?

We'll cross that bridge when we come to it. ;-) The default will be that it
all continues to be handled by Xen, and explicit paravirtualisations will be
introduced to allow dom0, and perhaps domUs also, to get involved.

>> Actually, instead of GPF'ing on 'bad' CR4 writes, we could just log a
>> XENLOG_WARNING and return. That would avoid any problems for any other CR4
>> bits too.
> 
> What is the documented behaviour if a bit is set while the machine lacks
> support for it?

That should GPF. But no OS actually probes for features that way, as there
are perfectly good CPUID feature flags for that. Linux in particular will
not be happy if any of its writes to CR4 results in a GPF.

 -- Keir

  reply	other threads:[~2007-08-29 14:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070825154617.GA27424@wavehammer.waldi.eu.org>
2007-08-29 10:02 ` [RESEND] Linux 2.3.23-rc3 on Xen 3.1 crashs Bastian Blank
2007-08-29 10:14   ` Keir Fraser
2007-08-29 10:27     ` Bastian Blank
2007-08-29 10:39   ` Jan Beulich
2007-08-29 11:02     ` Bastian Blank
2007-08-29 11:32       ` Jan Beulich
2007-08-29 13:09         ` Keir Fraser
2007-08-29 14:13           ` Bastian Blank
2007-08-29 14:22             ` Keir Fraser [this message]
2007-08-29 13:23   ` Bastian Blank

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=C2FB3FBA.14FF2%keir@xensource.com \
    --to=keir@xensource.com \
    --cc=bastian@waldi.eu.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 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.