From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="izpRVTxV" 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