From: Tom Rotenberg Subject: Re: Doamin crash when trying to install disk encryption (PointSec) on Windows HVM Date: Sun, 26 Apr 2009 13:59:19 +0300 Message-ID: <8686c3cd0904260359n6e40ab38i12703b16091fbe11@mail.gmail.com> References: <8686c3cd0904231100w60222e91j431ce985c619f63b@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1811765027==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Tim Deegan , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============1811765027== Content-Type: multipart/alternative; boundary=0016367ed58f269a6f0468731fa5 --0016367ed58f269a6f0468731fa5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Keir, I'm trying to figure out what causes the bug i'm experiencing, and i suspect that the TSS patch you have sent me has bugs. I saw in your patch, that you are setting the attributes of the every user segment (including CS) to be 0xf3, which sets the segment type to Data R/W. Don't you need to set the CS segment type to be Code R/W? Tom 2009/4/23 Keir Fraser > On 23/04/2009 19:00, "Tom Rotenberg" wrote: > > > I have applied the patch, and it looks like now it passed this part. > However, > > now, it hangs, and doesn't show the PointSec pre-boot GUI. I have also > seen > > the following messages in 'xm dmesg': > > > > (XEN) HVM2: Booting from Hard Disk... > > (XEN) HVM2: Booting from 0000:7c00 > > (XEN) multi.c:3351:d2 write to pagetable during event injection: > cr2=0x2234bc, > > mfn=0x29c23 > > (XEN) multi.c:3351:d2 write to pagetable during event injection: > > cr2=0x1032ff8, mfn=0x28e32 > > (XEN) multi.c:3351:d2 write to pagetable during event injection: > > cr2=0x102fff8, mfn=0x28e2f > > > > Do u have any idea what may cause this problem? > > Those messages are usually rare and typically indicate that a guest > pagetable page has been recycled as a kernel stack page, and is being > written to as part of an exception/interrupt delivery. My guess for why > you're seeing it is that you've entered some horrible exception loop where > the exception handler causes another exception, and this repeats itself. > This would cause the stack to overwrite memory (as exception stack frames > stack up one on top of the other on top of the other...), taking out > pagetable pages as it goes. You'd then hang or crash when enough memory is > overwitten that the exception loop gets broken. > > Since the root cause of the exceptions happened some time back in > execution, > this could be a pain to debug. :-) And my theory may not even be correct... > > -- Keir > > > --0016367ed58f269a6f0468731fa5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Keir,

I'm trying to figure out what causes the = bug i'm experiencing, and i suspect that the TSS patch you have sent me= has bugs. I saw in your patch, that you are setting the attributes of the = every user segment (including CS) to be 0xf3, which sets the segment type t= o Data R/W. Don't you need to set the CS segment type to be Code R/W?
Tom

2009/4/23 Keir Fraser <keir.fraser@eu.ci= trix.com>
On 23/04/2009 19:00, "Tom Rotenberg" <tom.rotenberg@gmail.com> wrote:=

> I have applied the patch, and it looks like now it passed this part. H= owever,
> now, it hangs, and doesn't show the PointSec pre-boot GUI. I have = also seen
> the following messages in 'xm dmesg':
>
> (XEN) HVM2: Booting from Hard Disk...
> (XEN) HVM2: Booting from 0000:7c00
> (XEN) multi.c:3351:d2 write to pagetable during event injection: cr2= =3D0x2234bc,
> mfn=3D0x29c23
> (XEN) multi.c:3351:d2 write to pagetable during event injection:
> cr2=3D0x1032ff8, mfn=3D0x28e32
> (XEN) multi.c:3351:d2 write to pagetable during event injection:
> cr2=3D0x102fff8, mfn=3D0x28e2f
>
> Do u have any idea what may cause this problem?

Those messages are usually rare and typically indicate that a guest pagetable page has been recycled as a kernel stack page, and is being
written to as part of an exception/interrupt delivery. My guess for why
you're seeing it is that you've entered some horrible exception loo= p where
the exception handler causes another exception, and this repeats itself. This would cause the stack to overwrite memory (as exception stack frames stack up one on top of the other on top of the other...), taking out
pagetable pages as it goes. You'd then hang or crash when enough memory= is
overwitten that the exception loop gets broken.

Since the root cause of the exceptions happened some time back in execution= ,
this could be a pain to debug. :-) And my theory may not even be correct...=

=A0-- Keir


--0016367ed58f269a6f0468731fa5-- --===============1811765027== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1811765027==--