commit | 0967b7bf1c22b55777aba46ff616547feed0b141 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Sat Sep 15 17:34:36 2007 +0300 |
committer | Avi Kivity <avi@qumranet.com> | Sat Oct 13 10:18:29 2007 +0200 |
tree | f855d1f25943dfd8cb6e40f0e81744f1e32d98e0 | |
parent | 535eabcf0e55804b53d27fe45217d874b19bcfa9 [diff] |
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>