Skip to contentSkip to conversation

commit 80917728e43e248155c019f743655806b582b099

PATCH Avi Kivity 1 participant 2 messages Jul 31, 2007 KVM

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

KVM: x86 emulator: disable writeback for debug register instructions

These are handled internally by the instruction.

drivers/kvm/x86_emulate.c +2 -0
index 1a90ba0..2136da5 100644
@@ -1222,11 +1222,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]);
author
#1 lore raw
Quoted 7 lines · Avi Kivity

KVM: x86 emulator: disable writeback for debug register instructions

These are handled internally by the instruction.

Sorry, junk that. Fingers (or brain) slipped. Better one coming up.

Signature · 1 line
error compiling committee.c: too many arguments to function