Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3878708pxj; Mon, 24 May 2021 17:37:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPKWkh8h4+oBsbzx6yUh2ewm5iwXzuu6U6hmXUK+283tNiNHOiFYMDaXM9AnkYXVbkx2Kx X-Received: by 2002:a05:6402:128f:: with SMTP id w15mr29424936edv.354.1621903073827; Mon, 24 May 2021 17:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621903073; cv=none; d=google.com; s=arc-20160816; b=JAMwq5l+dxhjJb3vNWoLn8TBVCnD28fsGrjcp0JrLPekTDRsc30rwrIVBiQqJ+A7N2 EXCbnVKRNINeq8JWNI7g3otCQ4dfnWLMvs8RN3AsqgVekJHKsnnvgQYPBnSrGosW+eua 2orsos2GGp3Ouv8/i2jo9zPqBymIdqgeChEram9aYSAGUx3+MD+eUDa3mGSMemuJQcRz OST5eAhs/RSWgwVAbtjr/Og39gWcbzlrRKyCpqMK0lBDr1Ssb00VjiMw0KofvFNYGcDV BohGj7TfEFV+rYOWTvzo58AOZG93WJbB3fBcNA2eNxulHzn42FQIvofDRmkaXOAgnPgn J05w== 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=duq/RXxM92h20M4K3bG1jjsrCGvRyVcMx6UhHe43/10=; b=E8FGe7U0soTDn1omGdpem58NMG9QR9QLJ2tCzhovYyL48MmlPKla/H57ZkdoqpIJLG s4dSPCA+lXjIVrw/CY3nQ247OPpFXt+I3Rgb6LN8gQe+8xWRvAOSMM4/Kyq+yM0sDWkT 76yuTwnIA7W8GEEfKlDyQ9GzT5qKSGKp52mBdZexbNExALUsf5xVZsLpW311ZaUIg+Sj Uu5wVmeDewaqUNB+chL4/7e97wfisT+YftTC59HSg7uWOL3QPNLPlJXPE/QloEDu21QZ XwFiH7p8GrvON7e9Nr9O2WeUsIhD6f+V2B8r8FikvcOhyTPiZhFeMCI8NxTFweZh5RbX r0Uw== 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 i22si13773665ejp.511.2021.05.24.17.37.29; Mon, 24 May 2021 17:37:53 -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 S229598AbhEYAh6 (ORCPT + 99 others); Mon, 24 May 2021 20:37:58 -0400 Received: from mga12.intel.com ([192.55.52.136]:45301 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhEYAh5 (ORCPT ); Mon, 24 May 2021 20:37:57 -0400 IronPort-SDR: 7YlEPWpkftMZy2rzp3KBrccBNSX+LDLc5oEUQJBQXGlI/gFI9vmOHNPwbJdkjTHKE6WYzc/wga lBWqNqBdnfSA== X-IronPort-AV: E=McAfee;i="6200,9189,9994"; a="181702956" X-IronPort-AV: E=Sophos;i="5.82,327,1613462400"; d="scan'208";a="181702956" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2021 17:36:23 -0700 IronPort-SDR: PNiE8R7tlZZxl6b4LbKo4BLWsWIzK93sQ+05/lDy6TClUiBMGpG5c5+bmpK0ukdbJ2HOkupc6Z uEzwQ2eLmDEQ== X-IronPort-AV: E=Sophos;i="5.82,327,1613462400"; d="scan'208";a="546281419" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.212.195.214]) ([10.212.195.214]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2021 17:36:22 -0700 Subject: Re: [RFC v2-fix-v2 2/2] x86/tdx: Ignore 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: <37ad50ca-f568-4c62-56e2-9e9b1f34084c@linux.intel.com> <20210524233211.802033-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210524233211.802033-2-sathyanarayanan.kuppuswamy@linux.intel.com> From: Andi Kleen Message-ID: Date: Mon, 24 May 2021 17:36:21 -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 that. > I thought we discussed that there are other considerations for wbinvd > besides DMA? In any event this paragraph is actively misleading > because it disregards ACPI and Persistent Memory secure-erase whose > usages of wbinvd have nothing to do with DMA. In this case they would be broken in KVM too. > I would much prefer a > patch to shutdown all the known wbinvd users as a precursor to this > patch rather than assuming it's ok to simply ignore it. You have > mentioned that TDX does not need to use those paths, but rather than > assume they can't be used why not do the audit to explicitly disable > them? Otherwise this statement seems to imply that the audit has not > been done. We're not assuming it. We know it because KVM does it since forever. All we want to do is do the same as KVM. -Andi