All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Tom Rotenberg <tom.rotenberg@gmail.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Doamin crash when trying to install disk encryption (PointSec) on Windows HVM
Date: Wed, 22 Apr 2009 11:53:00 +0100	[thread overview]
Message-ID: <C614B59D.929E%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <8686c3cd0904220150h769c71d0g52d9cf5b5de8474a@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

On 22/04/2009 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 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


[-- Attachment #2: 00-lldt --]
[-- Type: application/octet-stream, Size: 1015 bytes --]

diff -r cdc044f665dc xen/arch/x86/x86_emulate/x86_emulate.c
--- a/xen/arch/x86/x86_emulate/x86_emulate.c	Wed Apr 22 11:26:37 2009 +0100
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c	Wed Apr 22 11:52:15 2009 +0100
@@ -172,7 +172,7 @@
 
 static uint8_t twobyte_table[256] = {
     /* 0x00 - 0x07 */
-    0, ImplicitOps|ModRM, 0, 0, 0, 0, ImplicitOps, 0,
+    SrcMem16|ModRM, ImplicitOps|ModRM, 0, 0, 0, 0, ImplicitOps, 0,
     /* 0x08 - 0x0F */
     ImplicitOps, ImplicitOps, 0, 0, 0, ImplicitOps|ModRM, 0, 0,
     /* 0x10 - 0x17 */
@@ -3440,6 +3440,14 @@
  twobyte_insn:
     switch ( b )
     {
+    case 0x00: /* Grp6 */
+        fail_if((modrm_reg & 7) != 2);
+        generate_exception_if(!in_protmode(ctxt, ops), EXC_UD, -1);
+        generate_exception_if(!mode_ring0(), EXC_GP, 0);
+        if ( (rc = load_seg(x86_seg_ldtr, src.val, ctxt, ops)) != 0 )
+            goto done;
+        break;
+
     case 0x01: /* Grp7 */ {
         struct segment_register reg;
         unsigned long base, limit, cr0, cr0w;

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

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

  reply	other threads:[~2009-04-22 10:53 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22  8:50 Doamin crash when trying to install disk encryption (PointSec) on Windows HVM Tom Rotenberg
2009-04-22 10:53 ` Keir Fraser [this message]
2009-04-22 11:18   ` Tom Rotenberg
2009-04-22 11:50     ` Keir Fraser
2009-04-22 12:39       ` Tom Rotenberg
2009-04-22 12:59         ` Keir Fraser
2009-04-22 13:02           ` Keir Fraser
2009-04-22 13:12         ` Tim Deegan
2009-04-22 13:23           ` Tom Rotenberg
2009-04-22 13:31             ` Tim Deegan
2009-04-22 13:34             ` Keir Fraser
2009-04-22 13:41               ` Tim Deegan
2009-04-22 13:52                 ` Tom Rotenberg
2009-04-22 13:59                   ` Keir Fraser
2009-04-22 14:04                     ` Tom Rotenberg
2009-04-22 14:14                       ` Keir Fraser
2009-04-22 14:20                         ` Tom Rotenberg
2009-04-22 14:25                           ` Keir Fraser
2009-04-22 14:40                             ` Tom Rotenberg
2009-04-22 14:48                               ` Keir Fraser
2009-04-22 14:53                                 ` Tom Rotenberg
2009-04-23  9:56                                 ` Tom Rotenberg
2009-04-23 10:42                                   ` Keir Fraser
2009-04-23 11:44                                     ` Tom Rotenberg
2009-04-23 12:15                                       ` Keir Fraser
2009-04-23 14:08                                         ` Tom Rotenberg
2009-04-23 14:28                                           ` Keir Fraser
2009-04-23 15:57                                             ` Tom Rotenberg
2009-04-23 16:01                                               ` Tim Deegan
2009-04-23 16:10                                                 ` Tom Rotenberg
2009-04-23 17:16                                                   ` Keir Fraser
2009-04-23 17:27                                                     ` Keir Fraser
2009-04-23 17:38                                                       ` Tom Rotenberg
2009-04-23 17:49                                                         ` Keir Fraser
2009-04-23 18:00                                                           ` Tom Rotenberg
2009-04-23 18:27                                                             ` Keir Fraser
2009-04-23 20:16                                                               ` Tom Rotenberg
2009-04-26 10:59                                                               ` Tom Rotenberg
2009-04-26 11:14                                                                 ` Tom Rotenberg
2009-04-26 11:23                                                                   ` Tom Rotenberg
2009-04-26 12:27                                                                     ` Keir Fraser
2009-04-26 15:08                                                                       ` Tom Rotenberg
2009-04-26 15:45                                                                         ` Keir Fraser

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=C614B59D.929E%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=tom.rotenberg@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.