]> git.baikalelectronics.ru Git - kernel.git/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)
commit8816c1bccb3c086c1eb87c65f48bbe521fafc04c
treef855d1f25943dfd8cb6e40f0e81744f1e32d98e0
parentafd03a334972abdedf631783a103682a8783ae1e
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