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)
commitdc7457ea52f88539dc72925360e6068d5c938a0f
tree944de4de942d1e95d449b8a87ff47581f1720342
parentde368dceb33c3c068dbde1407aff75cd8e126f04
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