KVM: Fix mov cr3 #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>
Showing
- arch/x86/include/asm/kvm_host.h 1 addition, 1 deletionarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/mmu.c 1 addition, 1 deletionarch/x86/kvm/mmu.c
- arch/x86/kvm/svm.c 2 additions, 2 deletionsarch/x86/kvm/svm.c
- arch/x86/kvm/vmx.c 2 additions, 2 deletionsarch/x86/kvm/vmx.c
- arch/x86/kvm/x86.c 2 additions, 8 deletionsarch/x86/kvm/x86.c
Loading
Please register or sign in to comment