Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1683534pxj; Wed, 19 May 2021 11:23:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmspS6haxOVKmvYUTaTB3ffq4jiUo8PDgpXS+7P69MtqCbbEYw61DFVCVxF4bu8rsXj8Tr X-Received: by 2002:a50:fb8c:: with SMTP id e12mr381315edq.93.1621448615793; Wed, 19 May 2021 11:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448615; cv=none; d=google.com; s=arc-20160816; b=aYax82aFgS4K4/eYBOTxzLRnl+wPompkn9EGWDeR6oYsWlfD30RqWj+tAmoUWvnnhq 4OEBj3fTbM5Dg5I1hcU/dyrSbGvXrb/oX+GZaSI2YcYl3TQXyQSjw+elkKfhGf5P6tp1 KcbGK29uaYX/p7vpI2QOXyfXLCgfNW+w5TMXfk3AcV0fCEi/zlHdVgFPvwHoPEv6JMnj 7bMoStNU1R0dbu8rvhZQsR6YADdatkWO9a6BfpdSftpL+83Lk6QmpdSQyb6jWEuYHKRg pakeRmfMRFYoYcWn+I2BlGYX/XAJgCwI69KHNWxp8Lr85cw8n0gpsl7IOiLSPOC+31yW 1wQw== 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=HZTaT3Fe5iE3fw+B6F0y8Mh1379acGa29rzjLCaLjpc=; b=t3rrNgMxvt+QjFyDBD5dfi72O8UO/ovkyePT7axuVfhRSVGSohQqkqCWOJcEby0NYG tH9hEaFLH+9ICxyqP1PClsfGmcUomtNaK6CpPqJEIYmGZgIQX/p59lKL61wOkfV0MiQY 1L0I9ZdT5gg+yce+bWcMb26VGySM66x/PBEdDqkiMbFPYEDPiekkaLV5a42fG/k10h50 An5YnAbSoa/zlBeaHPt5PhmPbRZ91Vi3fUnu8qgtORvpiUoUMHXvbLQ9aQVMtY1rW7zw A1IVJS8marAvTViASzmYILLRHOdMiioLQJAaWIBVgvjc/MyxqiUdIs3EQDWOMh5zfkBp EJRg== 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 w26si84215edl.479.2021.05.19.11.23.11; Wed, 19 May 2021 11:23:35 -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 S1350396AbhERPsJ (ORCPT + 99 others); Tue, 18 May 2021 11:48:09 -0400 Received: from mga05.intel.com ([192.55.52.43]:39725 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350318AbhERPq7 (ORCPT ); Tue, 18 May 2021 11:46:59 -0400 IronPort-SDR: W+3ucHEq/3pSbifLHjail9pJ2xUNz9R3IlgAITLKVxxnZjP+hoVPhGsN+FAE6F8dJIfjDI9u/y 54UUwRX2JyeQ== X-IronPort-AV: E=McAfee;i="6200,9189,9988"; a="286276347" X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="286276347" 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 08:45:11 -0700 IronPort-SDR: J9dsPtbby4SXKSNBWfssLgT5WjxAbZ3aGBDqhM9LswFO5Fi103DeP9fWngToYkEB+1kjRSKFC0 ARYWrU7NxepA== X-IronPort-AV: E=Sophos;i="5.82,310,1613462400"; d="scan'208";a="439495053" 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 08:45:11 -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> From: Andi Kleen Message-ID: <81c0f447-44b8-c2b6-ce41-a39ec0a1832b@linux.intel.com> Date: Tue, 18 May 2021 08:45:05 -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: <4fc32900-412d-fa10-520e-afa6caade33e@intel.com> 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 On 5/18/2021 8:11 AM, Dave Hansen wrote: > On 5/17/21 5:09 PM, Kuppuswamy Sathyanarayanan wrote: >> After TDGETVEINFO #VE could happen in theory (e.g. through an NMI), >> although we don't expect it to happen because we don't expect NMIs to >> trigger #VEs. Another case where they could happen is if the #VE >> exception panics, but in this case there are no guarantees on anything >> anyways. > This implies: "we do not expect any NMI to do MMIO". Is that true? Why? Only drivers that are not supported in TDX anyways could do it (mainly watchdog drivers) panic is an exception, but that has been already covered. -Andi