From: Tom Rotenberg Subject: Re: Doamin crash when trying to install disk encryption (PointSec) on Windows HVM Date: Wed, 22 Apr 2009 14:18:35 +0300 Message-ID: <8686c3cd0904220418s1e6b6a6dvfecd0ed1f8a1d2a3@mail.gmail.com> References: <8686c3cd0904220150h769c71d0g52d9cf5b5de8474a@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0568896315==" 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: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0568896315== Content-Type: multipart/alternative; boundary=0016e6476052ae36fc046822ecb1 --0016e6476052ae36fc046822ecb1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Keir, I have applied your patch, and it seemed to work. However, the domain still crashes, and now it looks like it's because of the 'LTR' instruction. The (new) error i am receiving is: (XEN) HVM1: Booting from Hard Disk... (XEN) HVM1: Booting from 0000:7c00 (XEN) realmode.c:115:d1 Failed to emulate insn. (XEN) realmode.c:165:d1 Real-mode emulation failed @ 1eae:00000797: 0f 00 d8 66 b8 8e (XEN) domain_crash called from realmode.c:166 (XEN) Domain 1 (vcpu#0) crashed on cpu#0: (XEN) ----[ Xen-3.4.0-rc3-pre x86_64 debug=n Not tainted ]---- (XEN) CPU: 0 (XEN) RIP: 1eae:[<0000000000000797>] (XEN) RFLAGS: 0000000000004086 CONTEXT: hvm guest (XEN) rax: 0000000000000050 rbx: 0000000000000007 rcx: 0000000000100000 (XEN) rdx: 0000000000000000 rsi: 0000000000000000 rdi: 0000000000000000 (XEN) rbp: 0000000000008ebf rsp: 0000000000017a5e r8: 0000000000000000 (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000000 (XEN) r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 (XEN) r15: 0000000000000000 cr0: 0000000000000011 cr4: 0000000000000000 (XEN) cr3: 0000000000000000 cr2: 0000000000000000 (XEN) ds: 0068 es: 0068 fs: 0068 gs: 0068 ss: 0070 cs: 1eae Tom 2009/4/22 Keir Fraser > On 22/04/2009 09:50, "Tom Rotenberg" wrote: > > > AFAIK, the PointSec is trying to load his UI (which is probably coded in > > realmode) in this stage, and i guess that some of the instrctions he uses > > aren't emulated in Xen. > > > > I am using xen-unstable, changeset: 19553 (from April 16), and the > machione i > > am working on, is a Lenovo T500. > > > > Can someone please help me with this, as i am not really familiar with > the > > real mode emulation code? > > We don't emulate LLDT at the moment. Try the attached patch. > > -- Keir > > --0016e6476052ae36fc046822ecb1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Keir,

I have applied your patch, and it seemed to w= ork. However, the domain still crashes, and now it looks like it's beca= use of the 'LTR' instruction.

The (new) error i am receiving= is:

(XEN) HVM1: Booting from Hard Disk...
(XEN) HVM1: Booting from 0000:= 7c00
(XEN) realmode.c:115:d1 Failed to emulate insn.
(XEN) realmode.c= :165:d1 Real-mode emulation failed @ 1eae:00000797: 0f 00 d8 66 b8 8e
(XEN) domain_crash called from realmode.c:166
(XEN) Domain 1 (vcpu#0) cr= ashed on cpu#0:
(XEN) ----[ Xen-3.4.0-rc3-pre=A0 x86_64=A0 debug=3Dn=A0 = Not tainted ]----
(XEN) CPU:=A0=A0=A0 0
(XEN) RIP:=A0=A0=A0 1eae:[<= ;0000000000000797>]
(XEN) RFLAGS: 0000000000004086=A0=A0 CONTEXT: hvm guest
(XEN) rax: 00000= 00000000050=A0=A0 rbx: 0000000000000007=A0=A0 rcx: 0000000000100000
(XEN= ) rdx: 0000000000000000=A0=A0 rsi: 0000000000000000=A0=A0 rdi: 000000000000= 0000
(XEN) rbp: 0000000000008ebf=A0=A0 rsp: 0000000000017a5e=A0=A0 r8:= =A0 0000000000000000
(XEN) r9:=A0 0000000000000000=A0=A0 r10: 0000000000000000=A0=A0 r11: 000000= 0000000000
(XEN) r12: 0000000000000000=A0=A0 r13: 0000000000000000=A0=A0= r14: 0000000000000000
(XEN) r15: 0000000000000000=A0=A0 cr0: 0000000000= 000011=A0=A0 cr4: 0000000000000000
(XEN) cr3: 0000000000000000=A0=A0 cr2: 0000000000000000
(XEN) ds: 0068= =A0=A0 es: 0068=A0=A0 fs: 0068=A0=A0 gs: 0068=A0=A0 ss: 0070=A0=A0 cs: 1eae=

Tom

2009/4/22 Keir Fraser <keir.fraser@eu.citrix.com>
On 22/04/200= 9 09:50, "Tom Rotenberg" <tom.rotenberg@gmail.com> wrote:

> AFAIK, the PointSec is trying to load his UI (which is probably coded = in
> realmode) in this stage, and i guess that some of the instrctions he u= ses
> aren't emulated in Xen.
>
> I am using xen-unstable, changeset: 19553 (from April 16), and the mac= hione i
> am working on, is a Lenovo T500.
>
> Can someone please help me with this, as i am not really familiar with= the
> real mode emulation code?

We don't emulate LLDT at the moment. Try the attached patch.

=A0-- Keir

--0016e6476052ae36fc046822ecb1-- --===============0568896315== 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 --===============0568896315==--