Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bac27d35cbbf7c641efcc75b5330df8717d6db65
Commit:     bac27d35cbbf7c641efcc75b5330df8717d6db65
Parent:     9e865f58da5ff0a9c19669a49ac984117711757a
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Sun Aug 5 10:16:11 2007 +0300
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Aug 6 17:54:41 2007 -0700

    KVM: x86 emulator: fix debug reg mov instructions
    
    More fallout from the writeback fixes: debug register transfer
    instructions do their own writeback and thus need to disable the general
    writeback mechanism.
    
    This fixes oopses and some guest failures on AMD machines (the Intel
    variant decodes the instruction in hardware and thus does not need
    emulation).
    
    Cc: Alistair John Strachan <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/kvm/x86_emulate.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c
index 1f979cb..4b8a0cc 100644
--- a/drivers/kvm/x86_emulate.c
+++ b/drivers/kvm/x86_emulate.c
@@ -1217,11 +1217,13 @@ twobyte_insn:
                }
                break;
        case 0x21: /* mov from dr to reg */
+               no_wb = 1;
                if (modrm_mod != 3)
                        goto cannot_emulate;
                rc = emulator_get_dr(ctxt, modrm_reg, &_regs[modrm_rm]);
                break;
        case 0x23: /* mov from reg to dr */
+               no_wb = 1;
                if (modrm_mod != 3)
                        goto cannot_emulate;
                rc = emulator_set_dr(ctxt, modrm_reg, _regs[modrm_rm]);
-
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