]> err.no Git - linux-2.6/blobdiff - drivers/kvm/x86_emulate.c
m68k/mac: Make mac_hid_mouse_emulate_buttons() declaration visible
[linux-2.6] / drivers / kvm / x86_emulate.c
index 1b800fc00342c55dbdb47c21935345330b49c4ef..4b8a0cc9665eda6662c5248782ec846e1e6367e7 100644 (file)
@@ -1178,6 +1178,8 @@ pop_instruction:
 twobyte_insn:
        switch (b) {
        case 0x01: /* lgdt, lidt, lmsw */
+               /* Disable writeback. */
+               no_wb = 1;
                switch (modrm_reg) {
                        u16 size;
                        unsigned long address;
@@ -1215,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]);