KVM: x86 emulator: fix debug reg mov instructions
authorAvi Kivity <avi@qumranet.com>
Sun, 5 Aug 2007 07:16:11 +0000 (10:16 +0300)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 7 Aug 2007 00:54:41 +0000 (17:54 -0700)
commitbac27d35cbbf7c641efcc75b5330df8717d6db65
tree2c4d7ec9c63c9bf8d1cd251b16da07f91c50c7da
parent9e865f58da5ff0a9c19669a49ac984117711757a
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 <alistair@devzero.co.uk>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/kvm/x86_emulate.c