Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2612030rdg; Mon, 16 Oct 2023 09:21:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFp4iC6fUwAMtLJ42Br3SgcITXc7HEZ+G9i1/2D+Ubj1fw7ubJ8cnJKnj4NZr0QYCc7CkUs X-Received: by 2002:a05:6358:880c:b0:166:d39d:f84e with SMTP id hv12-20020a056358880c00b00166d39df84emr525070rwb.2.1697473293503; Mon, 16 Oct 2023 09:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697473293; cv=none; d=google.com; s=arc-20160816; b=dVYv1QJfEshOuKBb2QzMDft57p4ebs/POYK2vCLo+xmOGpkSG+Ut2DfzpO//zbe1a/ p1v+UcWdfqKarllzjm5dzF29+Mr4La7p8mdpuTKr2gppZOqltfQnqvh3Q0YVBgoUjRNY 2Vsyjy8T3ndUifwuQ7lR+wqSce+xAKRuVfy8bCgofiEwOR/QzXv6t5HuN1aJxuzHAIXj PYJmmVSowmreUC8ZYpLgUPsFuYwItG655jW2TcM8my0gMts0GmKtSgIxy75OqxkxYwFl FHXmn79nIYizw5ofiMFwxq/UqSw9gcL+rBt4XQ3FrqocwE175v1MK4IOcINUxHZOUkvc ZfCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dNcmqM0HyGtX57CzDi4m1SOOKt0pMjcyjVIo7jXK/RQ=; fh=lRdU2Q/1zx5DcPdZuWBjshA5VT5Oc9cEhB1tCFiV0Nw=; b=MuhALJH3ngQ7Pehj+1RXrTB6hjIpxUZrvjXEbFjSkXaxRRRpuR964NTW7eqwlsq4Bc mnUsKp5rvGP/WAxQRdSjgu3h+WCpV5fZ8cVPMMAmvm5cwU87g2vjyn1Lp2adJqJ/t3B2 y9LXezGW6lgBSbVBcxIkp2WFJ1//sDAzuHmrd/WNgovJElLd+/6hhlJekfsiEktDKBiU 1KPkOFpiwzbmduzOcPOkj8k4Mu3drWQqvvJarWt7/1VUvE3T3W0Vr4xrl+MfisI5Y6i4 Qqy080c+0MrmDQlCBuMmnoQ+sZ+9fxRpBDlWxYqJ89btyycSIRl9LqwOJSwNoQqhJQvp GeuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=filbB1kQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id p26-20020aa79e9a000000b006bd66ce21d9si111217pfq.322.2023.10.16.09.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 09:21:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=filbB1kQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7F941802C8CC; Mon, 16 Oct 2023 09:21:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234009AbjJPQVL (ORCPT + 99 others); Mon, 16 Oct 2023 12:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234212AbjJPQUs (ORCPT ); Mon, 16 Oct 2023 12:20:48 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 911BE181; Mon, 16 Oct 2023 09:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697473171; x=1729009171; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6YA1OeaB9jXBevULWVmASnb1nuq2QXXn0wVVpTdL3r8=; b=filbB1kQQIStiTUz1wU4pM4k12j3LPOXRye1Uwo9yDp6uT1u0GPxY4F7 9KyivqE8kosan+yM/UDY2O0cgy3ebNLi+3Jsf333wZ91eMBOj9vSMjI/F euzLE9+NOvrP6m53olsrwiiSV7lG1j81tJrhR1d/JcqbXgVPf8R4Gm8MU rLQM33H4fYRDtglFVPOfcXZLcYDUVExtRYF883qlsqAEG94qMFqNL5+tZ LAOpqrypW2t8ahwtKMCTPGvcm/GFZgA4Q0WnCqrreoL66/fcfqH+Pgrch yP/0Zfy4OFz+6aXoQx1bCMQ21HM1yEcl6+diRgEU61xmqO6DQP1JYNklK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="365825871" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="365825871" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 09:15:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="1087125965" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="1087125965" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 09:15:22 -0700 From: isaku.yamahata@intel.com To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: isaku.yamahata@intel.com, isaku.yamahata@gmail.com, Paolo Bonzini , erdemaktas@google.com, Sean Christopherson , Sagi Shahar , David Matlack , Kai Huang , Zhi Wang , chen.bo@intel.com, hang.yuan@intel.com, tina.zhang@intel.com Subject: [PATCH v16 004/116] KVM: VMX: Reorder vmx initialization with kvm vendor initialization Date: Mon, 16 Oct 2023 09:13:16 -0700 Message-Id: <01c4d7938ee7e5915b82b2249dc999378c183322.1697471314.git.isaku.yamahata@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 09:21:32 -0700 (PDT) From: Isaku Yamahata To match vmx_exit cleanup. Signed-off-by: Isaku Yamahata --- arch/x86/kvm/vmx/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kvm/vmx/main.c b/arch/x86/kvm/vmx/main.c index 4059364fc5e0..2e8a0de2c96a 100644 --- a/arch/x86/kvm/vmx/main.c +++ b/arch/x86/kvm/vmx/main.c @@ -180,11 +180,11 @@ static int __init vt_init(void) */ hv_init_evmcs(); - r = kvm_x86_vendor_init(&vt_init_ops); + r = vmx_init(); if (r) - return r; + goto err_vmx_init; - r = vmx_init(); + r = kvm_x86_vendor_init(&vt_init_ops); if (r) goto err_vmx_init; @@ -201,9 +201,9 @@ static int __init vt_init(void) return 0; err_kvm_init: - vmx_exit(); -err_vmx_init: kvm_x86_vendor_exit(); +err_vmx_init: + vmx_exit(); return r; } module_init(vt_init); -- 2.25.1