]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: disable writeback on lmsw
authorAvi Kivity <avi@qumranet.com>
Wed, 30 Apr 2008 13:13:36 +0000 (16:13 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 4 May 2008 11:44:45 +0000 (14:44 +0300)
commitc64b21ae8937ab05cd2c652c09008e39f4c7a759
tree944de4de942d1e95d449b8a87ff47581f1720342
parent4971312a9a30c312149c310b01f9aef571b1f0a6
KVM: x86 emulator: disable writeback on lmsw

The recent changes allowing memory operands with lmsw and smsw left
lmsw with writeback enabled.  Since lmsw has no oridinary destination
operand, the dst pointer was not initialized, resulting in an oops.

Close the hole by disabling writeback for lmsw.

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86_emulate.c