x86/kvm/nVMX: avoid redundant double assignment of nested_run_pending
PATCH 1/1 x86/kvm/nVMX: avoid redundant double assignment of nested_run_pending
nested_run_pending is set 20 lines above and check_vmentry_prereqs()/ check_vmentry_postreqs() don't seem to be resetting it (the later, however, checks it).
--- arch/x86/kvm/vmx.c | 3 --- 1 file changed, 3 deletions(-)
arch/x86/kvm/vmx.c +0 -3
@@ -14221,9 +14221,6 @@ static int vmx_set_nested_state(struct kvm_vcpu *vcpu, check_vmentry_postreqs(vcpu, vmcs12, &exit_qual))return -EINVAL ; -if (kvm_state->flags &KVM_STATE_NESTED_RUN_PENDING ) - vmx->nested.nested_run_pending =1 ; - vmx->nested.dirty_vmcs12 = true; ret =enter_vmx_non_root_mode (vcpu,NULL );if (ret)
Signature · 1 line
2.14.4
Quoted 15 lines · Vitaly Kuznetsov
nested_run_pendingis set 20 lines above and check_vmentry_prereqs()/check_vmentry_postreqs()don't seem to be resetting it (the later, however, checks it).Signed-off-by Vitaly Kuznetsov <[email protected]>--- arch/x86/kvm/vmx.c | 3 --- 1 file changed, 3 deletions(-)arch/x86/kvm/vmx.c +0
-0
arch/x86/kvm/vmx.c static int vmx_set_nested_state(struct kvm_vcpu *vcpu, · line 14226
Quoted 9 lines
arch/x86/kvm/vmx.c +0
-3@@ -14221,9 +14221,6 @@ static int vmx_set_nested_state(struct kvm_vcpu *vcpu, check_vmentry_postreqs(vcpu, vmcs12, &exit_qual))return -EINVAL ; -if (kvm_state->flags &KVM_STATE_NESTED_RUN_PENDING ) - vmx->nested.nested_run_pending =1 ; - vmx->nested.dirty_vmcs12 = true; ret =enter_vmx_non_root_mode (vcpu,NULL );if (ret)
Jim Mattson
Reviewed-byQuoted 7 lines · Paolo Bonzini
Quoted 5 lines · Vitaly Kuznetsov
nested_run_pendingis set 20 lines above and check_vmentry_prereqs()/check_vmentry_postreqs()don't seem to be resetting it (the later, however, checks it).Signed-off-by Vitaly Kuznetsov <[email protected]>Reviewed-by Paolo Bonzini <[email protected]>
Quoted 4 lines · Vitaly Kuznetsov
nested_run_pendingis set 20 lines above and check_vmentry_prereqs()/check_vmentry_postreqs()don't seem to be resetting it (the later, however, checks it).
Quoted 23 lines
Signed-off-by Vitaly Kuznetsov <[email protected]>--- arch/x86/kvm/vmx.c | 3 --- 1 file changed, 3 deletions(-)arch/x86/kvm/vmx.c +0
-3@@ -14221,9 +14221,6 @@ static int vmx_set_nested_state(struct kvm_vcpu *vcpu, check_vmentry_postreqs(vcpu, vmcs12, &exit_qual))return -EINVAL ; -if (kvm_state->flags &KVM_STATE_NESTED_RUN_PENDING ) - vmx->nested.nested_run_pending =1 ; - vmx->nested.dirty_vmcs12 = true; ret =enter_vmx_non_root_mode (vcpu,NULL );if (ret)Signature · 1 line
2.14.4
Signature · 2 lines
All the best, Eduardo Valentin
Quoted 14 lines · Vitaly Kuznetsov
nested_run_pendingis set 20 lines above and check_vmentry_prereqs()/check_vmentry_postreqs()don't seem to be resetting it (the later, however, checks it).Signed-off-by Vitaly Kuznetsov <[email protected]>--- arch/x86/kvm/vmx.c | 3 --- 1 file changed, 3 deletions(-)arch/x86/kvm/vmx.c +0
-0
arch/x86/kvm/vmx.c static int vmx_set_nested_state(struct kvm_vcpu *vcpu, · line 14226
Quoted 9 lines
arch/x86/kvm/vmx.c +0
-3@@ -14221,9 +14221,6 @@ static int vmx_set_nested_state(struct kvm_vcpu *vcpu, check_vmentry_postreqs(vcpu, vmcs12, &exit_qual))return -EINVAL ; -if (kvm_state->flags &KVM_STATE_NESTED_RUN_PENDING ) - vmx->nested.nested_run_pending =1 ; - vmx->nested.dirty_vmcs12 = true; ret =enter_vmx_non_root_mode (vcpu,NULL );if (ret)