]> err.no Git - linux-2.6/commit
KVM: Skip pio instruction when it is emulated, not executed
authorAvi Kivity <avi@qumranet.com>
Sat, 15 Sep 2007 14:34:36 +0000 (17:34 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:29 +0000 (10:18 +0200)
commit0967b7bf1c22b55777aba46ff616547feed0b141
treef855d1f25943dfd8cb6e40f0e81744f1e32d98e0
parent535eabcf0e55804b53d27fe45217d874b19bcfa9
KVM: Skip pio instruction when it is emulated, not executed

If we defer updating rip until pio instructions are executed, we have a
problem with reset:  a pio reset updates rip, and when the instruction
completes we skip the emulated instruction, pointing rip somewhere completely
unrelated.

Fix by updating rip when we see decode the instruction, not after emulation.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c