* commit 80917728e43e248155c019f743655806b582b099
@ 2007-07-31 7:17 Avi Kivity
2007-07-31 7:49 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Avi Kivity @ 2007-07-31 7:17 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, kvm-devel
KVM: x86 emulator: disable writeback for debug register instructions
These are handled internally by the instruction.
Signed-off-by: Avi Kivity <avi@qumranet.com>
diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c
index 1a90ba0..2136da5 100644
--- a/drivers/kvm/x86_emulate.c
+++ b/drivers/kvm/x86_emulate.c
@@ -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]);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: commit 80917728e43e248155c019f743655806b582b099
2007-07-31 7:17 commit 80917728e43e248155c019f743655806b582b099 Avi Kivity
@ 2007-07-31 7:49 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-07-31 7:49 UTC (permalink / raw)
To: Avi Kivity; +Cc: Linus Torvalds, linux-kernel, kvm-devel
Avi Kivity wrote:
> KVM: x86 emulator: disable writeback for debug register instructions
>
> These are handled internally by the instruction.
>
> Signed-off-by: Avi Kivity <avi@qumranet.com>
>
>
Sorry, junk that. Fingers (or brain) slipped. Better one coming up.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-31 7:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 7:17 commit 80917728e43e248155c019f743655806b582b099 Avi Kivity
2007-07-31 7:49 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox