]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: call kvm_skip_emulated_instruction in nested_vmx_{fail,succeed}
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 26 Sep 2018 16:23:55 +0000 (09:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:58 +0000 (00:29 +0200)
commit8d771a98c687e5c38df55d40dd97edfff618ffbc
tree57104143e298d352f6dfc1e12584f613299b87d8
parent658abf62eae71f1d3165a589fe26b51f96ba583c
KVM: nVMX: call kvm_skip_emulated_instruction in nested_vmx_{fail,succeed}

... as every invocation of nested_vmx_{fail,succeed} is immediately
followed by a call to kvm_skip_emulated_instruction().  This saves
a bit of code and eliminates some silly paths, e.g. nested_vmx_run()
ended up with a goto label purely used to call and return
kvm_skip_emulated_instruction().

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c