]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Refactor kvm_vcpu_do_singlestep() to remove out param
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 27 Aug 2019 21:40:29 +0000 (14:40 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 12:30:32 +0000 (14:30 +0200)
commit18f2af7905631360b10cbba7e727b4dd37a75de2
treeeb7f4bca93e03b8bbd728349e80f227ac8ace826
parent3cbb53ca6df2ba08a6d6241e1d4b6233fd2e9d03
KVM: x86: Refactor kvm_vcpu_do_singlestep() to remove out param

Return the single-step emulation result directly instead of via an out
param.  Presumably at some point in the past kvm_vcpu_do_singlestep()
could be called with *r==EMULATE_USER_EXIT, but that is no longer the
case, i.e. all callers are happy to overwrite their own return variable.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c