This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] Alignment check on domU (2.6.32)

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] Alignment check on domU (2.6.32)
From: Natalie Protasevich <protasnb@xxxxxxxxx>
Date: Tue, 30 Mar 2010 04:34:23 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 30 Mar 2010 04:35:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=1Euwfq8ExVhQcJ4JJkLrSXiY4AqErUkRmfTB6ZooMwA=; b=X7ccJCEAq0TkdA+x4SGHupMndXhuJhuSCMgYC/3LoY8atKoP8L/kLvbAamC4OtOGOf nlU1dTzjqAqNvn989xiBJUmoOnZJCNKwOV0A7HlZ2E5Am8kj66nfIGta80RtSyqF3zOM ZwHl0gy9QUWNxV7cjgqVnjcVn9rSpy5MfcmOE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OxdDOONS0GCs4MiDtpDm9Rg66VLvoXnOp/r/qbc5thmpEOK9amST/d6NVPNm6cniZk e2uwiKKh4FzIsbALglC+DKl+SllnKX/HXYSncXrfhYeRqRv4GbK7n0DZIK7UgOsT9yb8 tcyxXAbxQvwC5N8EblTxq8HNatUqBn2TK7FYY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BB1CD140200007800037BF6@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <32209efe1003292008y5880e9bfib238c089377b4ba7@xxxxxxxxxxxxxx> <4BB1CD140200007800037BF6@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On Tue, Mar 30, 2010 at 1:06 AM, Jan Beulich <JBeulich@xxxxxxxxxx> wrote:
>>> Natalie Protasevich <protasnb@xxxxxxxxx> 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...



Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>