Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1917164lql; Wed, 13 Mar 2024 11:46:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVc6NCwQ7U/OT7km95bmMCzN3+0xn7LsFRE/hpRwiNRrXVPMMezLTyiLMO1sT1/SLAZORXK/eUh80fZyMU4R49Y4DQg3bIa9ECl/BLEbg== X-Google-Smtp-Source: AGHT+IGHIjnrgLpOGYP+lm/VXhN5v4ytOWMp5UnFhOzu0CGsKNit5UHXKqBJgjHEAXpSY7D+LuYf X-Received: by 2002:a05:620a:a96:b0:788:45c9:bc53 with SMTP id v22-20020a05620a0a9600b0078845c9bc53mr684134qkg.15.1710355569691; Wed, 13 Mar 2024 11:46:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710355569; cv=pass; d=google.com; s=arc-20160816; b=cavXyEYL/NXMgZDiGKKYN+BQHsEtchXlSuFYMOJrA0yjz0/et8XakEQY2oGMB6qkTs CT6Z3cURGT4OXl2x2M4/FN8QIpBSqZNZww/sAYZfxaoLJX3SsYRR9R0Tn6QVROF2YwPU mtaf2/IAnjvNtn1GCD3Ye4pUg1RGOMZ4M4ADqWsHPvYAt5Oqj+ELBPhjiOixxfLChzBD GsmtX3r8lyb9PYwueO391Z3O6eSTGDtqDqPZ7M54NpWGsx6eOhgnRk9zAZLeq68G2eQG AokLJyP2KdFCVeYv58/Fl0k9Cb+ghV2j1QobV0l7UV+dyuQGUidD8IVZy6d+BDyDxXAK Ez6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eVqBopyr19cmEPUsT7XETT16DnvzvLtUSceFlHcLN/E=; fh=f1NdTtjtPe0NQm2me6niRxRDC83+BWYMFrwRhx8RFDg=; b=dweG8Vfjc6F8Yu1MhcmSWWpBjF7/JEmRveV4OEjWj1nwOJbNF3jPWV6bkITnv9g2MM q4fJ8P6HEpbSPMgv0VEs49/yVaD/CQfftqmTnK4COKNe73PIB5GTr9djSFRLGdXQtASc 46GlSIgP9UNM1y6SL54vJN8iW+csIm7V1kjrZIkUV/IxcbtfhL6LMzzWyk6rJBEA6xvg gEsLqrvYeYYoM46tKS6ixV5iGGvaM/RXvDDyrrl8BLBWTKfygQyaffWCYW8z2WyFneiY B+4l/0N0K7zCIkHIGCijGz7wUC/KEFr/enaxPapx2nvdgMkYWqxJZhgw0qmrLMJpbrO3 RwEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=izpRVTxV; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-102277-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bm26-20020a05620a199a00b00789ca764ae8si2021158qkb.133.2024.03.13.11.46.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:46:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102277-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=izpRVTxV; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-102277-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AA5471C274E5 for ; Wed, 13 Mar 2024 18:44:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9534712DDA2; Wed, 13 Mar 2024 17:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="izpRVTxV" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B62464CC0; Wed, 13 Mar 2024 17:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710351385; cv=none; b=B3qBwx4qVZTw0d+xVflCTz/gi1Xm8HayBc0Zz5ZseJEzOe5BxXLxrYKPQ5YOKUMaBzXzP/sug5jzI2bSR/jWIdqqgd6OTgLd9t+fsXd36N7fGh5PE5gYoIn409AzHRK1Wq2GAReg2soA7m4JfqYxAe3mF9UXtvb657ohh1RkN1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710351385; c=relaxed/simple; bh=nZMYaUvF26Y3Smoh3i1Q4mGy+mqD5+JQOlRmXnRyUio=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iQJN1mIv4TiR4oWfjweS9aL9ELTt7h6n3FrUm68ZI4QNkhfW2J2Ft+WE6Mo5lnoSJ2J/UZ3rJ/ku3t8kaou+jr7z9jK3kdEuo2R32a3fjqdnanqiQhi++JcnELRa1h+Sr0dns9LOioF6mbgjPIbaASHDIkPGBGDspgHrATK4D14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=izpRVTxV; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710351384; x=1741887384; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nZMYaUvF26Y3Smoh3i1Q4mGy+mqD5+JQOlRmXnRyUio=; b=izpRVTxVvn2qYWAUhKJWo/gwGnkVLF2t66+90FH/wczmimg8ymVt9J9c j47B0nv60Gnk2LTA8GPZWlOGAJ3udw7vg7mm2gDUmDC4nVCFmXicODQw+ e/D4ZzDlVistcLxfH6L56ou7VNkUh7S1QvikQgc+hit+rLE64GolELrpI pdUJb2KOCMRCNfcQ5Q7mazGZ8IKYujq5gKMxagwg3EpKNQkCqMZ8KsHPr 8CWZqOw1gJ40w32u9yfFokt1/Ctto90Aju8UMYDu0TE2/ojvRSZ/6yoKn 3WY08xCSuFRpusr6kXpjTOLh8AGYYQuF0j23ABuPYxG+1X3SV7r1weBAV w==; X-IronPort-AV: E=McAfee;i="6600,9927,11012"; a="5000296" X-IronPort-AV: E=Sophos;i="6.07,123,1708416000"; d="scan'208";a="5000296" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2024 10:36:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,123,1708416000"; d="scan'208";a="12086180" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2024 10:36:22 -0700 Date: Wed, 13 Mar 2024 10:36:22 -0700 From: Isaku Yamahata To: Binbin Wu Cc: isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, Paolo Bonzini , erdemaktas@google.com, Sean Christopherson , Sagi Shahar , Kai Huang , chen.bo@intel.com, hang.yuan@intel.com, tina.zhang@intel.com, Yuan Yao , isaku.yamahata@linux.intel.com Subject: Re: [PATCH v19 021/130] KVM: x86/vmx: initialize loaded_vmcss_on_cpu in vmx_init() Message-ID: <20240313173622.GL935089@ls.amr.corp.intel.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Wed, Mar 13, 2024 at 11:30:11PM +0800, Binbin Wu wrote: > > > On 2/26/2024 4:25 PM, isaku.yamahata@intel.com wrote: > > From: Isaku Yamahata > > > > vmx_hardware_disable() accesses loaded_vmcss_on_cpu via > > hardware_disable_all(). To allow hardware_enable/disable_all() before > > kvm_init(), initialize it in before kvm_x86_vendor_init() in vmx_init() > > so that tdx module initialization, hardware_setup method, can reference > > the variable. > > > > Signed-off-by: Isaku Yamahata > > Reviewed-by: Yuan Yao > > The shortlog should be this? > KVM: VMX: Initialize loaded_vmcss_on_cpu in vmx_init() Yes. I also will fix the shortlog in the next patch. -- Isaku Yamahata