]> git.baikalelectronics.ru Git - kernel.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)
commit5ca16f80debbdfc8cf9eda76cd28eff6a4ff8cd7
treece1844ae8998f70fa0bae623fd44cd793fdb28c1
parent6faa6954fe62611d09f4625444aef841ed4d5e76
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