Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp143809rwb; Wed, 10 Aug 2022 16:35:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6gym4GBKyhH4WWxX5XAL1+pj3Gbv8N3yrOxFI4kwPsU3BKp73BGwQR7JTLU8hIxAL+pwE3 X-Received: by 2002:a17:907:970e:b0:731:4fb4:5f7b with SMTP id jg14-20020a170907970e00b007314fb45f7bmr12473993ejc.556.1660174557520; Wed, 10 Aug 2022 16:35:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660174557; cv=none; d=google.com; s=arc-20160816; b=MPlG1TKCXyGW9O28p+VmpA9vljGXsdNvrLQTtMBlI5jzMaEqm+OcWobST6OHxHrLSd o3ir/ytZ83N0xKoBdn2BjIfMgDRgpyPGpY/FSgJ3BScSuPLIHXOXwTcQ7gw3Bxiuh9pZ eMNp7phIpVaIal/oMwgDdfTcPrNGLJBULw8MN23nIX0YpFZhixlw07thiPNRZFdGks8p B2uaqJ/O0+iTYBwpXqYS4upeHAcjUpp7w/Nnpd8UvBDT4ScBrMNUU/J4lK9081cW5Qce DGglFbpw6iFzhaVcgx1eMLeG52IgG0L01QNTmHckZxHJ7aaBmP9WMyJRaIf43X9N4v2X kRJg== 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=Zc+bt5AY6Rt4g+g9bEnhy9RfC6UoupWmLKva0K53IlU=; b=X6iKJS5bWaBPi7qStYn79OvBRAk3UfIJlO/NRwghGYBmKl1ZHEZRq8ucWqZwaQ9Dgj JfKuldHW3HFhO/DKaPqJKJ//SNra58whm8EV5+KhFCXHIkfczYmSYJNxx6uMqDpbdfdM em7eBjNaGOMoDVMWIsNjEosv4W4G2iEDsQm0bhQLdD4BLbiUze6jq1HKuP8bW0A15JM3 oXgDY30mkEI4rSJ+q7cGJsQ2ksbbXMySo9IpPhOyYb75GwmyZH0neSNuWQpUHtTs0WdE 1Dhax7cwBHKm+B77MvDJ2gicwtCZy6ysHEZQrecvHyKOVEFl86qYGhL3tNWWUtpn2YxT wIBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ag+pQ2U0; 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 zk19-20020a17090733d300b007313013c1adsi5329208ejb.259.2022.08.10.16.35.32; Wed, 10 Aug 2022 16:35:57 -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=Ag+pQ2U0; 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 S233418AbiHJXDw (ORCPT + 99 others); Wed, 10 Aug 2022 19:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231424AbiHJXDt (ORCPT ); Wed, 10 Aug 2022 19:03:49 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 452A56CD2A for ; Wed, 10 Aug 2022 16:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660172629; x=1691708629; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=4MvWDtPgbTCdkg8tpthgX1oBWOMtO/DwRzPVVKpE+dA=; b=Ag+pQ2U0Hx3MAu3R3i/DhaboRXyDPMDSJGF5X553RnYT8WeW8XEF7KTI j+2Lw3Ryya1X92s1122blXj0G262L25o0xxQlqh3MuzfZ84VDOp7+2ICq u8aaaBbJLkNI8421tgoCnKM8ozo5dKJWrs1a3Yazhb+cJ6TGyC7dVhAYp WTYPqkv/hY3lkgNcQ52e0UXrzimjkGGv8J9DTVBjWM0xt6RpC8CWzCcnh iqIYrC4BdExsjfzRCY0jEUxa58wGD+X0V15DdhBBOWrcVh14igQN6t2+G 5muGZqLaK6wJ0E8OgBCRf5jelzjFFMdHttuc6MkWZ4QlkWuBWwxvlkFzr g==; X-IronPort-AV: E=McAfee;i="6400,9594,10435"; a="317170698" X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="317170698" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 16:03:48 -0700 X-IronPort-AV: E=Sophos;i="5.93,228,1654585200"; d="scan'208";a="933079844" Received: from sarava2x-mobl1.gar.corp.intel.com (HELO [10.254.67.234]) ([10.254.67.234]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 16:03:47 -0700 Message-ID: <83a0d220-1872-caba-4e7e-b6a366655cf2@linux.intel.com> Date: Wed, 10 Aug 2022 16:03:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] x86/apic: Don't disable x2APIC if locked Content-Language: en-US To: Thomas Gleixner , Dave Hansen , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "Shutemov, Kirill" Cc: "H. Peter Anvin" , linux-kernel@vger.kernel.org, "Gomez Iglesias, Antonio" , Pawan Gupta References: <20220809234000.783284-1-daniel.sneddon@linux.intel.com> <238ea612-5a25-9323-b31f-0a14493db2f7@linux.intel.com> <341ea6e9-d8f3-ee7a-6794-67408abbf047@linux.intel.com> <87r11nu52l.ffs@tglx> From: Daniel Sneddon In-Reply-To: <87r11nu52l.ffs@tglx> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, 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 8/10/22 15:06, Thomas Gleixner wrote: > So this affects already deployed systems and we have to > > - backport the x2apic lock changes > > - provide proper diagnostics > > - make SGX and TDX depend on X2APIC support I'll add the comments Dave mentioned earlier, and will make SGX and TDX depend on X2APIC since that makes sense regardless of what hw ends up with this change. Unless we want to get rid of CONFIG_X86_X2APIC like Dave mentioned?