Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5106195rwb; Mon, 21 Nov 2022 16:56:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf7vwNOO/tzg43BemXTv3EnmH+kgB84AfnUUVmQTI5umY1rJtZE+COt1HYHZP1zKaJPkI15H X-Received: by 2002:a17:903:234e:b0:188:cfc6:8543 with SMTP id c14-20020a170903234e00b00188cfc68543mr10632416plh.95.1669078611292; Mon, 21 Nov 2022 16:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669078611; cv=none; d=google.com; s=arc-20160816; b=NcLSlyA0kncb0KmB14F7iIVx82EoEW4RUG9cEizpm0/H7de9rFaoGc9dVEElelMiPw JDHrLtW9bg8xEYv/JX1N3uJdY3MFudqRj3dgbUw0EROvXsa8i73ieZD3sUxw9hLziMA6 GEpcxYB0GhL4WNX+On07VpU0kycnOvfon+feKjcA60QzCcbPJqKFkzDmVSQSWaCvlQzw YTLZJLD2N7uYecXy+SWJFVgsJHfX/Jb4MZucB4Okt75KHArGtznOh+8o/R3yqCrztYzx g5t98SBRu+4hzdunkfqrFCP0QuLVppr2B1MUJJh0c8RlORoWfUDDxyxUSUOLJN3/sMqO OL+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QwMRGBWYzas+ZQrLaEnofwdfFB02EOMAadv4uVE0NuE=; b=1CdnL8EbfyV5ddkqoMFn2qyL1FnHE7eerDifpkBjDJB1JCIeU3pS1yBUhguSjfO0ZI pldK0X6CTgppADvTmskw98bGK3MgOEfOrzbZ0ACaN/XyVRUsrnvw2zglUeohbI4xvj5l L6fJ8B/T11GieTBn9zHxa5VuieJRdFtjRm1MmjSJicgsxrLiCXdPIikJR6xdNidC5ITE d37bq8M2fbp6d69AHHUes97RFXDygGYW+4lCFxK9p6E7L85v72QZWzCHd9tejTvpNTls EgEPYWK8RIFmgS6MMTlSffgCedXQuXiAIhzSDGbBkxNtXJzUJqq6xEjQBjglDF5ejy1P qS1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ncFQK+6K; 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 125-20020a630483000000b004706a2c7d5fsi12437545pge.254.2022.11.21.16.56.39; Mon, 21 Nov 2022 16:56:51 -0800 (PST) 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=ncFQK+6K; 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 S231513AbiKVAo5 (ORCPT + 91 others); Mon, 21 Nov 2022 19:44:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbiKVAoy (ORCPT ); Mon, 21 Nov 2022 19:44:54 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3374313F2F; Mon, 21 Nov 2022 16:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669077894; x=1700613894; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=vQu+Ql6V2W8MdI2sO01U5UcW0Jf0jzenhcur0b9+iUY=; b=ncFQK+6KFgytMgcc+Ewt/XD6k3hiie1U7GyDYDW1cFSYPrX+CEJc+Xrm U+4QSMjwkVHsqHKlqkUhzr0laEd1YsXthL7pMyuhg9x5bMUl4Hl+N+Tew EKbqX+ovVvYY7h4r/GHLW1rSeIYEEC1pDuKulK0mywP4tDY5+T051QLLx gjxCildlytdctAxGsIr0LsqqC8a+e8MJ0byGwxZ4OG4twKA6Ax76PjJ1f eH6mJGm2mpdfmY9tDHgPAFpVJtgMCUOvALc9TKyJKVaG2rWnQrBgibViI 56PkvpywKK7KSeFFBFOM5opfOCVYFOy7hGLFL143uKgvxAf6KDliLtBM0 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="297053116" X-IronPort-AV: E=Sophos;i="5.96,182,1665471600"; d="scan'208";a="297053116" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 16:44:53 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="783652648" X-IronPort-AV: E=Sophos;i="5.96,182,1665471600"; d="scan'208";a="783652648" Received: from ticela-or-327.amr.corp.intel.com (HELO [10.209.6.63]) ([10.209.6.63]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 16:44:51 -0800 Message-ID: Date: Mon, 21 Nov 2022 16:44:50 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v7 03/20] x86/virt/tdx: Disable TDX if X2APIC is not enabled Content-Language: en-US To: "Huang, Kai" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: "Luck, Tony" , "bagasdotme@gmail.com" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "kirill.shutemov@linux.intel.com" , "Christopherson,, Sean" , "Chatre, Reinette" , "pbonzini@redhat.com" , "linux-mm@kvack.org" , "Yamahata, Isaku" , "peterz@infradead.org" , "Shahar, Sagi" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "Williams, Dan J" References: <87e17024-755d-e195-d9ea-ef62a4de6aa8@intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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,NICE_REPLY_A, 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 On 11/21/22 16:30, Huang, Kai wrote: > > How about still having a patch to make INTEL_TDX_HOST depend on X86_X2APIC but > with something below in the changelog? > > " > TDX capable platforms are locked to X2APIC mode and cannot fall back to the > legacy xAPIC mode when TDX is enabled by the BIOS. It doesn't make sense to > turn on INTEL_TDX_HOST while X86_X2APIC is not enabled. Make INTEL_TDX_HOST > depend on X86_X2APIC. That's fine and it makes logical sense as a dependency. TDX host support requires x2APIC. Period.