commit | a83b29c6ad6d6497e569edbc29e556a384cebddd | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Thu Jun 10 17:02:15 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Aug 01 10:46:34 2010 +0300 |
tree | 444c440ec0e1f8e0d73d89cfc66fd185b03223c9 | |
parent | 49a9b07edcf4aff159c1f3d3a27e58cf38bc27cd [diff] |
KVM: Fix mov cr4 #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>