From: Keir Fraser Subject: Re: Doamin crash when trying to install disk encryption (PointSec) on Windows HVM Date: Sun, 26 Apr 2009 13:27:37 +0100 Message-ID: References: <8686c3cd0904260423y6459db74p7968c98803c7a895@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1554294503==" Return-path: In-Reply-To: <8686c3cd0904260423y6459db74p7968c98803c7a895@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tom Rotenberg Cc: Tim Deegan , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============1554294503== Content-type: multipart/alternative; boundary="B_3323597260_19644106" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3323597260_19644106 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable That chunk actually has no effect right now, as we should never load a non-user segment while in real mode. You could throw that patch chunk away if you like. -- Keir On 26/04/2009 12:23, "Tom Rotenberg" wrote: > Keir/Tim >=20 > Why did u add the check in load_seg() function x86_emulate.c: > diff -r 8b152638adaa xen/arch/x86/x86_emulate/x86_emulate.c > --- a/xen/arch/x86/x86_emulate/x86_emulate.c=A0=A0=A0 Thu Apr 23 16:22:48 2009 = +0100 > +++ b/xen/arch/x86/x86_emulate/x86_emulate.c=A0=A0=A0 Thu Apr 23 18:47:17 2009 = +0100 > @@ -1099,7 +1099,7 @@ > =A0=A0=A0=A0=A0=A0=A0=A0=A0 (ops->write_segment =3D=3D NULL) ) > =A0=A0=A0=A0=A0=A0=A0=A0 return X86EMUL_UNHANDLEABLE; > =A0 > -=A0=A0=A0 if ( in_protmode(ctxt, ops) ) > +=A0=A0=A0 if ( in_protmode(ctxt, ops) || !is_x86_user_segment(seg) ) > =A0=A0=A0=A0=A0=A0=A0=A0 return protmode_load_seg(seg, sel, ctxt, ops); >=20 > Why is it needed? and what will happen in case we will need to emulate a = load > of user segment in protected mode? right now, it will just not be perform= ed. > is this even legal? --B_3323597260_19644106 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Doamin crash when trying to install disk encryption = (PointSec) on Windows HVM That chunk actually has no effect right now, as we should never load a non= -user segment while in real mode. You could throw that patch chunk away if y= ou like.

 -- Keir

On 26/04/2009 12:23, "Tom Rotenberg" <tom.rotenberg@gmail.com> wrote:

<= SPAN STYLE=3D'font-size:11pt'>Keir/Tim

Why did u add the check in load_seg() function x86_emulate.c:
diff -r 8b152638adaa xen/arch/x86/x86_emulate/x86_emulate.c
--- a/xen/arch/x86/x86_emulate/x86_emulate.c=A0=A0=A0 Thu Apr 23 16:22:48 2009 +0= 100
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c=A0=A0=A0 Thu Apr 23 18:47:17 2009 +0= 100
@@ -1099,7 +1099,7 @@
=A0=A0=A0=A0=A0=A0=A0=A0=A0 (ops->write_segment =3D=3D NULL) )
=A0=A0=A0=A0=A0=A0=A0=A0 return X86EMUL_UNHANDLEABLE;
=A0
-=A0=A0=A0 if ( in_protmode(ctxt, ops) )
+=A0=A0=A0 if ( in_protmode(ctxt, ops) || !is_x86_user_segment(seg) )
=A0=A0=A0=A0=A0=A0=A0=A0 return protmode_load_seg(seg, sel, ctxt, ops);

Why is it needed? and what will happen in case we will need to emulate a lo= ad of user segment in protected mode? right now, it will just not be perform= ed. is this even legal?
--B_3323597260_19644106-- --===============1554294503== 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 --===============1554294503==--