]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: x86 emulator: add support for writing back the source operand
authorAvi Kivity <avi.kivity@gmail.com>
Sat, 9 Feb 2013 09:31:44 +0000 (11:31 +0200)
committerGleb Natapov <gleb@redhat.com>
Tue, 21 May 2013 12:43:14 +0000 (15:43 +0300)
commitfb32b1eda29f2040148b0e172f9cbbd2f07697e4
treece1844ae8998f70fa0bae623fd44cd793fdb28c1
parentf8b5ff2cff232df052955ef975f7219e1faa217f
KVM: x86 emulator: add support for writing back the source operand

Some instructions write back the source operand, not just the destination.
Add support for doing this via the decode flags.

Gleb: add BUG_ON() to prevent source to be memory operand.

Signed-off-by: Avi Kivity <avi.kivity@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/emulate.c