KVM: x86 emulator: fix cli/sti instruction emulation
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 6 Jul 2010 08:54:19 +0000 (16:54 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 03:40:26 +0000 (06:40 +0300)
commit07cbc6c185aee2c0479776845988242a040c7c93
treeb47ff3619fe38985273a51e663a81d41674a9ee0
parentb16b2b7bb5a78afceb7fe22f2a04476cd70182b7
KVM: x86 emulator: fix cli/sti instruction emulation

If IOPL check fail, the cli/sti emulate GP and then we should
skip writeback since the default write OP is OP_REG.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c