Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp118441pxb; Tue, 17 Nov 2020 23:09:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyl1RceKl1i/coXAMKltkhXbrcxmwl9IhIoFXXgCJ6HTtkJUTiXPkoMej9+G+1IYjsztGFC X-Received: by 2002:a17:907:435b:: with SMTP id oc19mr23603932ejb.535.1605683372176; Tue, 17 Nov 2020 23:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605683372; cv=none; d=google.com; s=arc-20160816; b=RZCvheJVtfywsa+Qxy6S2eh/92ELCAjcVTqcruTR9teecwO9SdruZObwuYidNs1jNa 6tcO6buLQbq8alkewcxdUfWwC7/vUze+8M7wv+f+Vw4ISH/OatYEX7uzBDnuL1PdpeEf kgQzMgPTVvNx/xgY+Qw2BViyZRR/W0fhAq+EgJLYV00sxPLkUgbAKse9KW1ucsf0m/fP X//QDam8KMFWHw4V+/Evcf4BVKLBZ9nt1hdkmgSuDa7NPYZLKuwx57kw0wzTbjF8pCiB ZeGTZjTeGMoqrtmROU17h8vpbLwanPZC6ZinWFy2h+J2Vn4GbEgfH36cwOTZqEnDtHAZ gWjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=W9Dn17eSP/nnht7DwPA04ZqWOvMUdMMYD9HsTapUw3s=; b=B4CdnMHJmt1aaMThGoAB8XslRnI+dQatAd98GadovmTVBDpOh/cA6DJ0pA3yWQjUX6 vxtuTIgB0Hc++K+mJGKW8TaOftEX990jwft2nFdKIjRc/NVIL2H1vOmhm/kPw0e92+r0 21zyx1/Fr0tG7A5MQkubuBLgv28JfukyVgtGaykPpMl4sVmDCQ16bLmwkqIfL7LkpjJg OGTpN+Etv/JrbUqWo6Gi9egcZtJVlQlzHSzpmwavezkQ9FpDLADNe+bkUw9mR2Hl2UaY zf7yxFHo71oT3h+XcCRozBe1ETXR6kclhgiBQTPYhvq/qej3bnT4Us7vLAb9g2lwMpuW /ynA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=HvCdngw+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd6si2335966edb.135.2020.11.17.23.09.07; Tue, 17 Nov 2020 23:09:32 -0800 (PST) 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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=HvCdngw+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726547AbgKRHHI (ORCPT + 99 others); Wed, 18 Nov 2020 02:07:08 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:49926 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbgKRHHI (ORCPT ); Wed, 18 Nov 2020 02:07:08 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AI6s9ll084754; Wed, 18 Nov 2020 07:06:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=W9Dn17eSP/nnht7DwPA04ZqWOvMUdMMYD9HsTapUw3s=; b=HvCdngw+jBC2wVcr6apwwhutpePCFVd7Cf1k8GW2LD6Oog+X6UzDlfOCBpR6fKrycYlp d5tj5PXuB7YJ4tGhNhXGvcW6TA9YIZbN5S8M9bHwE+5D9CJEnFfi1D8VhmYhYh9xdSz2 FfgAI6Kle/tlC94VaJ7tnnvONZm6lJPtphpdxbe56YKn83zB5RU7d9fN4sIJw31f2kZw EuZNg6MtGKTVGwmh1xyBESF7UTXN9dtoZcCT/BXoF1zYPC8Y+quLic2Qhn9/osQzFyVt MCbAGd5DyOZkwAPX//rcad19iyVvzeteY352inR/ZvwPoZTt6215ikHmxGZUhYiS1Y8X Ig== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 34t7vn6efx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Nov 2020 07:06:41 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AI6tIJI166456; Wed, 18 Nov 2020 07:06:41 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 34umd076rk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Nov 2020 07:06:40 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0AI76RxM012749; Wed, 18 Nov 2020 07:06:31 GMT Received: from linux.home (/92.157.91.83) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 Nov 2020 23:06:27 -0800 Subject: Re: [RFC][PATCH v2 00/21] x86/pti: Defer CR3 switch to C code To: Borislav Petkov Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, thomas.lendacky@amd.com, jroedel@suse.de, konrad.wilk@oracle.com, jan.setjeeilers@oracle.com, junaids@google.com, oweisse@google.com, rppt@linux.vnet.ibm.com, graf@amazon.de, mgross@linux.intel.com, kuzuno@gmail.com References: <20201116144757.1920077-1-alexandre.chartre@oracle.com> <20201116201711.GE1131@zn.tnic> <44a88648-738a-4a4b-9c25-6b70000e037c@oracle.com> <20201117165539.GG5719@zn.tnic> <890f6b7e-a268-2257-edcb-5eacc7db3d8e@oracle.com> <20201117182809.GK5719@zn.tnic> <33a1c6ee-0122-0b0c-ed2d-1578b29ef7c1@oracle.com> <20201117212307.GR5719@zn.tnic> From: Alexandre Chartre Message-ID: <1c39ebd0-2afd-5f51-ef48-ea3f378d8a0d@oracle.com> Date: Wed, 18 Nov 2020 08:08:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201117212307.GR5719@zn.tnic> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9808 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011180047 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9808 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 malwarescore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 mlxscore=0 priorityscore=1501 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011180047 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/17/20 10:23 PM, Borislav Petkov wrote: > On Tue, Nov 17, 2020 at 08:02:51PM +0100, Alexandre Chartre wrote: >> No. This prevents the guest VM from gathering data from the host >> kernel on the same cpu-thread. But there's no mitigation for a guest >> VM running on a cpu-thread attacking another cpu-thread (which can be >> running another guest VM or the host kernel) from the same cpu-core. >> You cannot use flush/clear barriers because the two cpu-threads are >> running in parallel. > > Now there's your justification for why you're doing this. It took a > while... > > The "why" should always be part of the 0th message to provide > reviewers/maintainers with answers to the question, what this pile of > patches is all about. Please always add this rationale to your patchset > in the future. > Sorry about that, I will definitively try to do better next time. :-} Thanks, alex.