Hi Avi,
  The attached patch corrects the emulation of instruction:
        mov
        opcodes:  0x88 - 0x8b

  Please apply.

-- 
Thanks & Regards,
Nitin
Open Source Technology Center, Intel Corporation
-----------------------------------------------------------------
The mind is like a parachute; it works much better when it's open
commit e976ee1c4f89211f971c704c28617dd6a3b84dc9
Author: Nitin A Kamble <[EMAIL PROTECTED]>
Date:   Thu Sep 13 19:59:00 2007 -0700

    Correct behavior of instruction:
    	mov
    	opcodes:  0x88 - 0x8b
    
    Signed-off-by: Nitin A Kamble <[EMAIL PROTECTED]>

diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c
index 2e4c631..e3fb9ba 100644
--- a/drivers/kvm/x86_emulate.c
+++ b/drivers/kvm/x86_emulate.c
@@ -1074,6 +1074,11 @@ push:
 		lock_prefix = 1;
 		break;
 	case 0x88 ... 0x8b:	/* mov */
+		if ((modrm_mod == 0x3) && (d & SrcMem)) {
+			d &= ~SrcMem;
+			d |= SrcReg;
+			goto modrm_done;
+		}
 		goto mov;
 	case 0x8f:		/* pop (sole member of Grp1a) */
 		/* 64-bit mode: POP always pops a 64-bit operand. */

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to