xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Natalie Protasevich <protasnb@gmail.com>
To: Jan Beulich <JBeulich@novell.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Alignment check on domU (2.6.32)
Date: Tue, 30 Mar 2010 04:34:23 -0700	[thread overview]
Message-ID: <32209efe1003300434u2a3e7120wb73074bb08109948@mail.gmail.com> (raw)
In-Reply-To: <4BB1CD140200007800037BF6@vpn.id2.novell.com>


[-- Attachment #1.1: Type: text/plain, Size: 1130 bytes --]

On Tue, Mar 30, 2010 at 1:06 AM, Jan Beulich <JBeulich@novell.com> wrote:

> >>> Natalie Protasevich <protasnb@gmail.com> 30.03.10 05:08 >>>
> > I cheated and cleared the AM flag in cr0 (as one can see in this
> > trace) but this didn't help.
>
> Assuming you did this in the hypervisor, this would point at a CPU bug.
> There should not be any alignment check exceptions with this bit clear.
>
> > I haven't figured out what sets the AM flag...
>
> The hypervisor sets up CR0 this way, and doesn't allow altering later.
> In order to allow the kernel to support alignment check exceptions
> for user mode, Xen needs to do it this way and clears AC each time
> passing control to (64-bit) kernel code.
>

I was trying to be careful with AC/AM, but still messed up :) I meant to say
I can't find so far who sets the AC flag,  although I sprinkled checks in
various places, next was going to see how I can set HW breakpoint.


>
> What you'll need to do is look for where AC gets set, probably by
> modifying all asm-s using popf, as this is what seems bogus.
>

Thanks for the hint! I will look at those...

--Natalie

>
> Jan
>
>

[-- Attachment #1.2: Type: text/html, Size: 1960 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  reply	other threads:[~2010-03-30 11:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-30  3:08 Alignment check on domU (2.6.32) Natalie Protasevich
2010-03-30  8:06 ` Jan Beulich
2010-03-30 11:34   ` Natalie Protasevich [this message]
2010-03-30 16:53 ` Jeremy Fitzhardinge
2010-03-30 17:32   ` Natalie Protasevich

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=32209efe1003300434u2a3e7120wb73074bb08109948@mail.gmail.com \
    --to=protasnb@gmail.com \
    --cc=JBeulich@novell.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 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).