From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDA18C433B4 for ; Tue, 18 May 2021 16:00:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9B3AE60725 for ; Tue, 18 May 2021 16:00:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350179AbhERQCO (ORCPT ); Tue, 18 May 2021 12:02:14 -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