Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp201292pxj; Fri, 14 May 2021 01:12:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI0YNm9qU6ySW+Bv1sPLFEkaTBxXozwnclwEpnRAcJC9KuZGPu0n5vUSYjMjQJdn3dGQfA X-Received: by 2002:a17:906:28d4:: with SMTP id p20mr48099971ejd.552.1620979962244; Fri, 14 May 2021 01:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620979962; cv=none; d=google.com; s=arc-20160816; b=GeRb7L8u3z9muC394CEsMchRuyGM/kP9RpC86ko6FGKTben8nhBrMJdcufEtZ7Gkti 7ALe459QN0aSt0g25b7itqpejwUGJpvfQMn6mspjamzq+3v+iKdV3X/C2XQXWM1tG2RM +ua6eIYigMp1L6oOo1xw7XdM/VP2mY3SEOCbW8SqE/i7a417EP1yvkcVsPBpr55xg4uc BhiuL/c4y+zX09vPNa1Wvp1pldkods5U9rDZPKapzcL/r8hbrXWDny9faNmD8jCAs5wh rfkZnM4J+d8W/U6FafxZytLq76lUuzHoOQcVs0TpHs8uDDH/I7vvxQ+zcaUxBGsGxBtP niAA== 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=TmTKaUrd9DCt0lkQdXNDIDfz8d4Qcg+eSg7lzyWJskg=; b=zf9DeP+iiGURjpCzCg+0tWnS+4TAYAsChFEVD/vsF1/KWZ9Z6CqDmDD42dU9Dg188g gypx6vRZFSO8vcJhKJNb2kiF1vHk3bjVxDfSuI6wZvETQ8ZbhXMzPjImF5RsaoruhrzA 4IQeo/7bafMc8n8/BoMa8pQ0wSc27n6dctxv7ynFIJZ8f86ww+1NekmiGNrGVJtDKaOG rCUGcyO5nI1vvO5ev0mWAJ2O7p4S7WQvxSEuKnUncOJMQd8h9yvrMGa885MeitEGGTTn ROChF7OGVJWhA0INUnEM1pBMIAG83Tq6n/LxApp/GwUEmuy/vVATzBzn4xgjP952Bqds 3y+g== 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 b6si6660225ejb.398.2021.05.14.01.12.19; Fri, 14 May 2021 01:12:42 -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 S229959AbhEMWpD (ORCPT + 99 others); Thu, 13 May 2021 18:45:03 -0400 Received: from mga02.intel.com ([134.134.136.20]:37799 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbhEMWpC (ORCPT ); Thu, 13 May 2021 18:45:02 -0400 IronPort-SDR: cpxC4HIjO9XfqOCH/bG83C1bNmRX987LAlHx4E8eBhPFVROImRrHW47A8rIR4t3WMTCx0WpzRm +TI2cxTY7YfQ== X-IronPort-AV: E=McAfee;i="6200,9189,9983"; a="187192747" X-IronPort-AV: E=Sophos;i="5.82,296,1613462400"; d="scan'208";a="187192747" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2021 15:43:52 -0700 IronPort-SDR: uR9Zw2x24dBUWUkUjFwl8aJs5tskTuURBrBuERQkXp5s0DEtbW03DGqmWJltIdWx9dUUK7YrcT 0H9h5wwWC3CA== X-IronPort-AV: E=Sophos;i="5.82,296,1613462400"; d="scan'208";a="401261059" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.17.244]) ([10.209.17.244]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2021 15:43:49 -0700 Subject: Re: [RFC v2 08/32] x86/traps: Add #VE support for TDX guest To: Dave Hansen , Kuppuswamy Sathyanarayanan , Peter Zijlstra , Andy Lutomirski , Dan Williams , Tony Luck Cc: Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , linux-kernel@vger.kernel.org, Sean Christopherson References: <8a1d6930f784cb57c957cf20cea870947db91e05.1619458733.git.sathyanarayanan.kuppuswamy@linux.intel.com> <73752227-6eaf-2de6-3ac6-5ee280980c18@linux.intel.com> <5b6b1937-d38f-a337-0520-7ce5d3083065@intel.com> From: Andi Kleen Message-ID: <35d4aee1-c4cf-dd2a-d651-83a528ad90c3@linux.intel.com> Date: Thu, 13 May 2021 15:43:48 -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: <5b6b1937-d38f-a337-0520-7ce5d3083065@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/13/2021 1:07 PM, Dave Hansen wrote: > On 5/13/21 12:47 PM, Andi Kleen wrote: >> "if there is any reason for it to nest the TD would shut down." > The TDX EAS says: > >> If, when attempting to inject a #VE, the Intel TDX module discovers >> that the guest TD has not yet retrieved the information for a >> previous #VE (i.e., VE_INFO.VALID is not 0), the TDX module injects a >> #DF into the guest TD to indicate a #VE overrun. > How does that result in a shut down? You're right. It's not a shutdown, but a panic. We'll need to fix the comment and replace 'shutdown' with 'panic' -And