Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp267926rwb; Tue, 25 Jul 2023 15:44:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhkhEti9TwvYCwT0cIbyHvepbXX5rP+c4LTgkjy0KdAxmHXU2A458ibWx6tbolJQ+h2PG0 X-Received: by 2002:a05:6a00:808:b0:682:37be:c9fe with SMTP id m8-20020a056a00080800b0068237bec9femr714306pfk.10.1690325083693; Tue, 25 Jul 2023 15:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690325083; cv=none; d=google.com; s=arc-20160816; b=tRvtzZdQDXGev7zU+HUikXMaOwtMehA7/jgPRErXwkxsRaWBDgpYfRDN+5uW6UQVUS 14GbF7WSe6kZDzjE1NJkqlM+nRhLWHJIGJM/RlxZJW3gT5tnHKkeZr304BBphUK/uCD6 E83C4j+kuVSEMtH9yFZYCkzHDvkH51fIIwQTuzNxWTlrGRqGxV9zfUUVW8lkYj0FsXOZ vXK+vAXkZLoQpBCfPAOJz9kfCEtacoYvX1tI7Ppm+YBhgxJ+TBQs/DIFQKPVbh8A5wD0 cGdK/2A2xN/AG4QTUvJM5Gzt40yQHdoR3k4oqG+diOmxF2pz5cWsq/sKwt63Rjqb3Zop wZsw== 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=ecyjQKlute88WeeO0D1owDaxB9XcBEyqXOSoDP9WD1o=; fh=juxwNcA6iKwLISFgUCNwdoIYC0NKLUseq3xZdq25RR4=; b=ujVkpCOGIOi5q0gmm9kIxylCT9QLIE3pOd8bSw6yK7jqsPYNd+j4NSzEPqiH6PqA2D 3QtwtA8h8XBUpgs5ueiaWXVmHx0F8prlQ1h/XAhHaR1i7u94ni98ebB8Ei1zxG3uOyxC 5l8KE8v7Icd1goNADVno/bFUEM+UkomUB5AiemZONDOJKuBIFtLVbnt8B2KonVFjgRCu Zgx1WdGZUAp62XZ2CNbqMyjVUIOeMfK9MyDeJifQGUFPVMZOPzlYaiULIQNsSxzuewBU A5DunWixWOTRQzCECMdcexFAxV0XCOt7bDl1Oze0UjtsYCDctzMuAi1s5opSncdu2e4M kQcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PpqnQugj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a22-20020a056a001d1600b0068219eb27a9si11508966pfx.233.2023.07.25.15.44.29; Tue, 25 Jul 2023 15:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PpqnQugj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230219AbjGYWPj (ORCPT + 99 others); Tue, 25 Jul 2023 18:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbjGYWPh (ORCPT ); Tue, 25 Jul 2023 18:15:37 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59D97F5; Tue, 25 Jul 2023 15:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690323335; x=1721859335; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pKZCqPO3oZUeDR6rPcORqpsgOwSf9m2DrMDdZUUZCs4=; b=PpqnQugjP62DkT/M7HKVRh2Oa1JTv6OYXBYbtJBD9bhijec1nJFHtmH2 Z+qTw/aokptNSnXadTrOYXwECYg6tpvuo7d8gYHAj1And3/CL3x2KTDL0 c5JEs0yTyGl8LEdBKoLMekswlqdO5HxXFu4tWHiVphQuMQrljG8odf2XD zSpXUz7Nr780t4jX+so8sNJ6DByHEPPvgOEpxQqn01MTxIzTHYPt9rBmk ai64JJNhRwxgiBjfs69xF+XI/jWUFPgdFDEzcuz/mTjumAySbiN3iRdWp z9YbHqUXq2X8Kk/YKI5kKFJMVg2bePv8bgeG4vQP4xYvLLMQWYkMgxc56 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="357863031" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="357863031" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2023 15:15:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10782"; a="1056938775" X-IronPort-AV: E=Sophos;i="6.01,231,1684825200"; d="scan'208";a="1056938775" 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; 25 Jul 2023 15:15:16 -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 v15 004/115] KVM: VMX: Reorder vmx initialization with kvm vendor initialization Date: Tue, 25 Jul 2023 15:13:15 -0700 Message-Id: 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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 27bfd3fcea09..deaba44c6bdf 100644 --- a/arch/x86/kvm/vmx/main.c +++ b/arch/x86/kvm/vmx/main.c @@ -179,11 +179,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; @@ -200,9 +200,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