Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1475000rwd; Wed, 7 Jun 2023 17:22:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6eUuYTFx7fKgHMycqCbxsIW1OovmxtEi0ushFbL07NJEvGvbcgYHVuOmC7dxOOke3k+UmY X-Received: by 2002:a17:90a:3ec3:b0:259:154d:1e with SMTP id k61-20020a17090a3ec300b00259154d001emr3563125pjc.3.1686183764496; Wed, 07 Jun 2023 17:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686183764; cv=none; d=google.com; s=arc-20160816; b=PS2wWs0kTkhfm7sO1x9seI6jNcuAeXiTvlp+aZPT3CMadkFQu6ezcCZcFG+QovPnfx zdivtHjQ92tLjZX7dM6hpk3IZ1IByRtSLB//+BOlaKdYXx0+b0jHlWCQgNiKJvR/wCEt 1c2bt877frXeXcin1z2AGGdHLvfBsKGEGOWekU4MVWoOFLK91eT7Q2dAkk0kDD+TGNDv NhmxOBsMRCRFLHJTV5ILOLbr8Y8M9AIVo503MkyCZyzNeM483uUNGYxFtEltwRcQua9g zfw5VWbKabBx7Wr37B63XXzTFtmrsElrQzKseTXdpgfnQNIlw5RVcqqdqIbV9xJyC5X4 bgiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1VrqzYOcDRJUbzw5CnKb63h4op+oX9TWMeeBjyKXpQo=; b=UX1KqhY1qunGcWzPQm6K68SwmXbYeiGPajvw40WGJCPx9NqmA5X4lMXzlXsUjRG/LU Wnwr+mUY6hMK+EM29hFmE46irkAL1RF6dVxlFkev1zVbe7sq+XEIvRz4PeN2ZHqubQTd fMGjDFvtbe0pDDgCSOYhIkX+AN6fyeYWiGxc09Ze11xmZmDRRriOIZOwQugLTSkZ/REz dfoK7UYniwBXNI53mw0Pqqym+w2aDAcmVTIvz0XP+qsc2I22Xlioypc//KA3sua7g3uF w+WWAHZlM5Zu/m8T7k62KzzJFVg4SEit74Q0516TIZx595VmbmKsNqbf2X2ISLTYBRWF 4eCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V6Yl7iAc; 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 m6-20020a17090a414600b0025926fe64b7si1803707pjg.94.2023.06.07.17.22.03; Wed, 07 Jun 2023 17:22:44 -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=V6Yl7iAc; 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 S231511AbjFHAIP (ORCPT + 99 others); Wed, 7 Jun 2023 20:08:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbjFHAIN (ORCPT ); Wed, 7 Jun 2023 20:08:13 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B65F1B0; Wed, 7 Jun 2023 17:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686182892; x=1717718892; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=orX0Bu/L96/XDgQUIv0Q1F83ZzFs+xjOVyvBhEpOjwY=; b=V6Yl7iAckbHsgp1h/0Rzemh1VaM17WSq5mqqOndN5aDNUhehM1WNwQ64 FWqjwM8ftiJHgW0bu8BWGJ2q6ANJf9GzOd5tMbLBFwQ0NGUnGwgp8k1F6 HM7bQKjP2GjbHjqM+d63WnThd1hESjEskkC4SYh1FHcwKhNihKld0o/mm h2Dpa7Y1VEv7WBn7eZmiGxzgyfOGi7UW1kg9JxGr70uBoCIs0ivn7scFG J37k23fUqn91KTWoie8ln/UV24KJ9xytgRuaugdMDs0heKXDO+3jzvygI ibVjwz0lVMXdUZZGaOiyubofPzWCAa2iQQCI2ZchqG41WCnUU7NOYM6OG A==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="385482269" X-IronPort-AV: E=Sophos;i="6.00,225,1681196400"; d="scan'208";a="385482269" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 17:08:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="854106686" X-IronPort-AV: E=Sophos;i="6.00,225,1681196400"; d="scan'208";a="854106686" Received: from zhanzhiw-mobl2.ger.corp.intel.com (HELO box.shutemov.name) ([10.249.42.209]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 17:08:06 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 6EB6D10F0E0; Thu, 8 Jun 2023 03:08:03 +0300 (+03) Date: Thu, 8 Jun 2023 03:08:03 +0300 From: kirill.shutemov@linux.intel.com To: Kai Huang Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, dave.hansen@intel.com, tony.luck@intel.com, peterz@infradead.org, tglx@linutronix.de, seanjc@google.com, pbonzini@redhat.com, david@redhat.com, dan.j.williams@intel.com, rafael.j.wysocki@intel.com, ying.huang@intel.com, reinette.chatre@intel.com, len.brown@intel.com, ak@linux.intel.com, isaku.yamahata@intel.com, chao.gao@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, bagasdotme@gmail.com, sagis@google.com, imammedo@redhat.com Subject: Re: [PATCH v11 03/20] x86/virt/tdx: Make INTEL_TDX_HOST depend on X86_X2APIC Message-ID: <20230608000803.x74u5fuylyw2pxjc@box.shutemov.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 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 Mon, Jun 05, 2023 at 02:27:16AM +1200, Kai Huang wrote: > TDX capable platforms are locked to X2APIC mode and cannot fall back to > the legacy xAPIC mode when TDX is enabled by the BIOS. TDX host support > requires x2APIC. Make INTEL_TDX_HOST depend on X86_X2APIC. > > Link: https://lore.kernel.org/lkml/ba80b303-31bf-d44a-b05d-5c0f83038798@intel.com/ > Signed-off-by: Kai Huang > Reviewed-by: Dave Hansen > Reviewed-by: David Hildenbrand Reviewed-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov