Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1683359pxj; Wed, 19 May 2021 11:23:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx75Q3RXNEvZC6n31qHWv3yVegZ+R81LtdWz23wAj0Smoso3Vgm2ey7qYme8eBEgRx00Ap X-Received: by 2002:a05:6e02:1348:: with SMTP id k8mr361634ilr.104.1621448594766; Wed, 19 May 2021 11:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448594; cv=none; d=google.com; s=arc-20160816; b=iis4C66PJmQw2/0HYss9o9J06RloosNoeQ34vl1CbVrJ6WM+MqLotl4zpmwSJleScv QpCCyCOUYZLAe4/Wle9oBurc3ElN/8vrWYK32jsUPYOcUHEAFpiKT06ZbbtKsJwO9XQT 1nRqYTDPEPH0h3yTh5vPwxbrm5kdrwycC89si8Ma4IaEhCfLcVHvFNBR5j95L9pLk3c3 72WeWn23cjkAhJX1jhK8RmUw1OTDj9gJSyiOumtXM1FWWQ9s29JO05Gei6ot4VnHtn3L mH2ixvHW6LtVbsM4uukTnybagEdipu3zKICefVfYCHmqRmmzvUaNtaHboED9mDy3l/cl SMGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=QtOFtbMSn92AMBe92ODA5mrTK6suJAnc2SsKydZfNmE=; b=mUeI3KnyzMrjwpkv8x+wF9Ib5cFHly4jqWhQFaS9wv9DtWYLyKhU4FklCkQ/g5McSx pStOU8xUvAmYwU9ql+0CXJWdovXTkhdXG+Ud+nOQ7F5HohfJT3ZD0pc+NHCecNw6rQlf Qirv5Si3rQYBS1YmZGmpAz/0fAAS4EXCf6222T+7mT3x29rrPvXwx4OMiEWsof01cAw1 QQiIwB2YcLCJe2OrTSyeScUSBNiDn3OAOjIqLMFmIy6HAfEAYijbbYJmT9/IPr4yTYBq OcKGLeMb3JAudXCTUWYilqMa2ZOWNH9/v2wf9/kLoGWySf28vf66ftQbGPIbNt3zL3N7 mCSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si24064130ios.97.2021.05.19.11.23.02; Wed, 19 May 2021 11:23:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350104AbhERQCN (ORCPT + 99 others); Tue, 18 May 2021 12:02:13 -0400 Received: from mga05.intel.com ([192.55.52.43]:41086 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350152AbhERQCJ (ORCPT ); Tue, 18 May 2021 12:02:09 -0400 IronPort-SDR: W4TYZhhDaSJQl63AdY29orL+Ue1TPw92qUMk18FoMKhBI4lXkfyKTXJWCUP0psNCIzQB4D4PY7 JT7WOSjJxTeA== X-IronPort-AV: E=McAfee;i="6200,9189,9988"; a="286279279" X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="286279279" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 09:00:37 -0700 IronPort-SDR: NI4ABGutW7/7yJwf/5I5+JeeEMD5rGLuw48looEUPSGDwztR404Vv9PZkGM0rxfZMzKsXY6ztO 9pXSt6WPIlTw== X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="439502267" Received: from msaber-mobl.amr.corp.intel.com (HELO [10.209.65.183]) ([10.209.65.183]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 09:00:36 -0700 Subject: Re: [RFC v2-fix 1/1] x86/traps: Add #VE support for TDX guest To: Dave Hansen , Kuppuswamy Sathyanarayanan , Peter Zijlstra , Andy Lutomirski Cc: Tony Luck , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Dan Williams , Raj Ashok , Sean Christopherson , linux-kernel@vger.kernel.org, Sean Christopherson References: <20210518000957.257869-1-sathyanarayanan.kuppuswamy@linux.intel.com> <4fc32900-412d-fa10-520e-afa6caade33e@intel.com> <81c0f447-44b8-c2b6-ce41-a39ec0a1832b@linux.intel.com> From: Andi Kleen Message-ID: <7e4b74a9-2de6-4d10-c68f-a41a5ad8c07f@linux.intel.com> Date: Tue, 18 May 2021 09:00:36 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > No APIC access either? It's all X2APIC inside TDX which uses MSRs > > Also, shouldn't we have at least a: > > WARN_ON_ONCE(in_nmi()); > > if we don't expect (or handle well) #VE in NMIs? We handle it perfectly fine. It's just not needed. -Andi