Skip to content
Commit 0967b7bf authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@qumranet.com>
parent 535eabcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment