Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ae6200baea4175cac684ea76f78082b31afbdefa
Commit:     ae6200baea4175cac684ea76f78082b31afbdefa
Parent:     1a52e051368a0e29b26e8790bacd8d1d759e3287
Author:     Laurent Vivier <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 20 11:17:24 2007 +0200
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Mon Oct 22 12:03:28 2007 +0200

    KVM: x86 emulator: fix repne/repnz decoding
    
    The repnz/repne instructions must set rep_prefix to 1 like rep/repe/repz.
    
    This patch correct the disk probe problem met with OpenBSD.
    
    This issue appears with commit e70669abd4e60dfea3ac1639848e20e2b8dd1255
    because before it, the decoding was done internally to kvm and after it
    is done by x86_emulate.c (which doesn't do it correctly).
    
    Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
---
 drivers/kvm/x86_emulate.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c
index b1026d2..80b1758 100644
--- a/drivers/kvm/x86_emulate.c
+++ b/drivers/kvm/x86_emulate.c
@@ -596,11 +596,10 @@ x86_emulate_memop(struct x86_emulate_ctxt *ctxt, struct 
x86_emulate_ops *ops)
                case 0xf0:      /* LOCK */
                        lock_prefix = 1;
                        break;
+               case 0xf2:      /* REPNE/REPNZ */
                case 0xf3:      /* REP/REPE/REPZ */
                        rep_prefix = 1;
                        break;
-               case 0xf2:      /* REPNE/REPNZ */
-                       break;
                default:
                        goto done_prefixes;
                }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to