}
 }
 
-static bool nested_vmcb_check_controls(struct kvm_vcpu *vcpu,
-                                      struct vmcb_control_area *control)
+static bool __nested_vmcb_check_controls(struct kvm_vcpu *vcpu,
+                                        struct vmcb_control_area *control)
 {
        if (CC(!vmcb_is_intercept(control, INTERCEPT_VMRUN)))
                return false;
        return __nested_vmcb_check_save(vcpu, save);
 }
 
+static bool nested_vmcb_check_controls(struct kvm_vcpu *vcpu)
+{
+       struct vcpu_svm *svm = to_svm(vcpu);
+       struct vmcb_control_area *ctl = &svm->nested.ctl;
+
+       return __nested_vmcb_check_controls(vcpu, ctl);
+}
+
 static
 void __nested_copy_vmcb_control_to_cache(struct vmcb_control_area *to,
                                         struct vmcb_control_area *from)
        nested_copy_vmcb_save_to_cache(svm, &vmcb12->save);
 
        if (!nested_vmcb_check_save(vcpu) ||
-           !nested_vmcb_check_controls(vcpu, &svm->nested.ctl)) {
+           !nested_vmcb_check_controls(vcpu)) {
                vmcb12->control.exit_code    = SVM_EXIT_ERR;
                vmcb12->control.exit_code_hi = 0;
                vmcb12->control.exit_info_1  = 0;
                goto out_free;
 
        ret = -EINVAL;
-       if (!nested_vmcb_check_controls(vcpu, ctl))
+       if (!__nested_vmcb_check_controls(vcpu, ctl))
                goto out_free;
 
        /*