Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4940556pxj; Wed, 9 Jun 2021 05:47:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoxukctO51WokoRaQi/B3f6G7qNlHWvktBEff3bqe+8vBwT+BQTyMUHmg6Pd60w1I8mHe3 X-Received: by 2002:a17:906:869a:: with SMTP id g26mr27843432ejx.94.1623242862427; Wed, 09 Jun 2021 05:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623242862; cv=none; d=google.com; s=arc-20160816; b=AmdLfGATrlqMMyXXC9CZpHtLfKuzsmPya83sdSO72OerXelhuPxU8iSlD0YDPOEjs1 08iXpSUNFSfRWvEp0P1FW6q49h8qKxCHCSUA1R5R7HkA0UDGJAjjmeOJuU3x/6u/6rdq 0sVDCz5abzEQEDPcgWySGhiTnjfg3MvYHsopz9aLFIPyiL2VJ4LJEqi7y/iYYOVtp4x5 jxpA2+LtnCYNMB1rmF5rThWgvEILLV3zg0EomfxhAWdNBuaUvfIav299k1gGgwE5nntP 08Uyo5OHZ3AxIGas269Tw8chy55Gn/qKE/5SG3/2jKwLa35XwtKSO4JzyqaH16EtEjPU e/Ig== 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=D2M6qfjHVV1l2d7NJ5QOPuEu87n94thn0VbXMcaVfw4=; b=W5eBH5NBo+zxLFP7XDfXsqDudPU4MQamCjflb91q/kJOEAPSVndNGrihj5Z1ibDGEv ow24NhdTam8p1e6reRTJiF17WCv+FiIUJHYmOcrSlEn3mtKyBQbugzZDmMaXvWy3QxG0 ed2xX7enAKNLSeXIdzut/JpuAKw+/MPrv0N8MaIHRcdXl/TfnuKXIp2ONMuUwVTwAjwv 51XJtu03dtXLn3vJjZwl4PIGfCgzRf0jV7dysVQRBMpDJIzVTENssO7rO8pcegw458bW 7RPztEMMjR7zKVB1umAT6a5HmdEwtUyHZzCBOQV3AsOVUaYaxtoCyZfeLi9cFbOZMsgR 2ISw== 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 f7si665461edd.201.2021.06.09.05.47.18; Wed, 09 Jun 2021 05:47: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 S231453AbhFIE3o (ORCPT + 99 others); Wed, 9 Jun 2021 00:29:44 -0400 Received: from mga02.intel.com ([134.134.136.20]:3083 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbhFIE3n (ORCPT ); Wed, 9 Jun 2021 00:29:43 -0400 IronPort-SDR: ggVz6ONT0wxMqoSJFz1LIHZ8Q42QZ2ShUwES1UFzNj5qn3Fp36QwpDLFxNxbgkqaZD/6LXHDH5 OO4Hw75oBe5Q== X-IronPort-AV: E=McAfee;i="6200,9189,10009"; a="192108947" X-IronPort-AV: E=Sophos;i="5.83,260,1616482800"; d="scan'208";a="192108947" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 21:27:49 -0700 IronPort-SDR: HeCT/nqKrfuPjAXu1ylWArnlL11/p3d4W1Mpk4F9c7ii3IHEscWqrq749+a4ZB7i78+bc7B+g6 nsmkqNOmc+Bw== X-IronPort-AV: E=Sophos;i="5.83,260,1616482800"; d="scan'208";a="551854385" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.24.11]) ([10.209.24.11]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 21:27:49 -0700 Subject: Re: [RFC v2-fix-v4 1/1] x86/tdx: Skip WBINVD instruction for TDX guest To: Dan Williams , "Kuppuswamy, Sathyanarayanan" Cc: Peter Zijlstra , Andy Lutomirski , Dave Hansen , Tony Luck , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , Linux Kernel Mailing List References: <20210609011030.751451-1-sathyanarayanan.kuppuswamy@linux.intel.com> <682f0239-8da0-3702-0f14-99b6244af499@linux.intel.com> From: Andi Kleen Message-ID: Date: Tue, 8 Jun 2021 21:27:48 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 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 here is no resume path. > Host is free to go into S3 independent of any guest state. Actually my understanding is that none of the systems which support TDX support S3. S3 has been deprecated for a long time. > A hostile > host is free to do just enough cache management so that it can resume > from S3 while arranging for TDX guest dirty data to be lost. Does a > TDX guest go fatal if the cache loses power? That would be a machine check, and yes it would be fatal. -Andi