commit | 49a9b07edcf4aff159c1f3d3a27e58cf38bc27cd | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Thu Jun 10 17:02:14 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Aug 01 10:46:32 2010 +0300 |
tree | 750ff11b09e7baa3f4c811ce7c85bf7546b051ae | |
parent | 2acf923e38fb6a4ce0c57115decbb38d334902ac [diff] |
KVM: Fix mov cr0 #GP at wrong instruction On Intel, we call skip_emulated_instruction() even if we injected a #GP, resulting in the #GP pointing at the wrong address. Fix by injecting the exception and skipping the instruction at the same place, so we can do just one or the other. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>