KVM: X86: Introduce more exit_fastpath_completion enum values
Adds a fastpath_t typedef since enum lines are a bit long, and replace EXIT_FASTPATH_SKIP_EMUL_INS with two new exit_fastpath_completion enum values. - EXIT_FASTPATH_EXIT_HANDLED kvm will still go through it's full run loop, but it would skip invoking the exit handler. - EXIT_FASTPATH_REENTER_GUEST complete fastpath, guest can be re-entered without invoking the exit handler or going back to vcpu_run Tested-by:Haiwei Li <lihaiwei@tencent.com> Cc: Haiwei Li <lihaiwei@tencent.com> Signed-off-by:
Wanpeng Li <wanpengli@tencent.com> Message-Id: <1588055009-12677-4-git-send-email-wanpengli@tencent.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/include/asm/kvm_host.h 3 additions, 1 deletionarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/svm/svm.c 7 additions, 8 deletionsarch/x86/kvm/svm/svm.c
- arch/x86/kvm/vmx/vmx.c 18 additions, 8 deletionsarch/x86/kvm/vmx/vmx.c
- arch/x86/kvm/x86.c 10 additions, 9 deletionsarch/x86/kvm/x86.c
- arch/x86/kvm/x86.h 1 addition, 1 deletionarch/x86/kvm/x86.h
Please register or sign in to comment