Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp862413ybi; Fri, 12 Jul 2019 05:54:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVvHcZgsPKEtCtZ6HN2P921DEMr9D0YHweirFcbanhYVhj1c4eMXvv7bmICLQoobst9bFd X-Received: by 2002:a17:90a:eb04:: with SMTP id j4mr9811599pjz.103.1562936086609; Fri, 12 Jul 2019 05:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562936086; cv=none; d=google.com; s=arc-20160816; b=Ts0spWge79fvpPM0ZomhzOxGefGiaPjKeI9RpMo51gRj9en5nXTqtYyeMCWsYvomxc aB5NAOjITZzlN/nkH4RrOwURyuEbDHN+oOEaO8yh9g2LaSCOcH4yZwVgVRoOTd75UoyC 9chiVSCQ5xykJCPrEwCRnmYJ+MrITUMGwlnClaVC0EQyXyTlLQnNATazHSsY6UZJzvur fMQN2TRRrBe9FY95CeVVBUEanhScXYc0mkK50uXRYJzQWTSK3ZxbZwA3LVXjVVKy780m xEmD+uf0iNPSpm2qieeySopLKBRQeqIzndK/Ev1VMvk3uPikdRTXMu4ZopM3i4/sjp7y tyAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=8vLEs/JBMWlFWXGIz+UNcNz5pVXTEU4KP1e0LBWVMWA=; b=cEmjFFS8zE3JfZylYuj3SK0nntFMwk82pDhSVWAcdxq+wlQBJ6yGqNAbezT0LJq1AZ XuqdRFbaPEElPtsDIFN3+dL5yyyfX3jOi14BgRoLT+L/v39gtlizKc5eDnClR+c2lOJ8 KSILqfPla4Piw0+Pt+gWkVFAlDaiViT9BdLdFM8Wlks2Pn2qoN4wsB7suOT1zTzK9jfn NEKJ2vQk52nu8LCJoPWz57aKHnW2MMCJpYZabI3XlbN/JZS5P8d3XzmJDiW3DrdKHVL1 o3ehWNwyvDCZo1HaRUeFUrjQlsUO/IIIU2uOr45FMkz+JC071Wfdt/W5CDT0ART2hQx8 I6sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=NX3566Q5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f37si7816704pjg.61.2019.07.12.05.54.31; Fri, 12 Jul 2019 05:54:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=NX3566Q5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727219AbfGLMyC (ORCPT + 99 others); Fri, 12 Jul 2019 08:54:02 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:33476 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727014AbfGLMyC (ORCPT ); Fri, 12 Jul 2019 08:54:02 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6CCnDU5044556; Fri, 12 Jul 2019 12:51:25 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-2018-07-02; bh=8vLEs/JBMWlFWXGIz+UNcNz5pVXTEU4KP1e0LBWVMWA=; b=NX3566Q5oHi6CcoRFVXeDCUAd2SUixaEFsGt/kWj+xlLRBG3Q0bb+0+ZcHXax9tbOrma jOavemz+RkRm9sLFEAI2a1//NAu+YVa9CqE9l4XddjHl4H+J2Iza83IToF7sZlPa5Jl1 R5SmSPrUfve8+ZaabvSmPvKDvrGmKLnixX7lh0PGQqqrcZpGPBpouxXXYzBhAP3PsGZ9 w0bsi8u3/mNn9/eHzLLYkLYgVSdw2Ina+tuTbPSQuew6n0ClflQVEIXepzBnHXtJjz1y 2qSJiTotkYAYun7ywTdz/2kTzUMnJAwmiWu1PYLPMJSQcv+5VEpzK0QyM/Ec5kxuqsrz WQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2tjm9r5e0f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Jul 2019 12:51:25 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x6CClhL5192025; Fri, 12 Jul 2019 12:51:24 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2tpefd2wwt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Jul 2019 12:51:24 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x6CCpLW1010069; Fri, 12 Jul 2019 12:51:21 GMT Received: from [10.166.106.34] (/10.166.106.34) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 12 Jul 2019 05:47:27 -0700 Subject: Re: [RFC v2 00/27] Kernel Address Space Isolation To: Peter Zijlstra Cc: pbonzini@redhat.com, rkrcmar@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, kvm@vger.kernel.org, x86@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, konrad.wilk@oracle.com, jan.setjeeilers@oracle.com, liran.alon@oracle.com, jwadams@google.com, graf@amazon.de, rppt@linux.vnet.ibm.com, Paul Turner References: <1562855138-19507-1-git-send-email-alexandre.chartre@oracle.com> <20190712114458.GU3402@hirez.programming.kicks-ass.net> <1f97f1d9-d209-f2ab-406d-fac765006f91@oracle.com> <20190712123653.GO3419@hirez.programming.kicks-ass.net> From: Alexandre Chartre Organization: Oracle Corporation Message-ID: Date: Fri, 12 Jul 2019 14:47:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190712123653.GO3419@hirez.programming.kicks-ass.net> 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=9315 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907120139 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9315 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907120140 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/12/19 2:36 PM, Peter Zijlstra wrote: > On Fri, Jul 12, 2019 at 02:17:20PM +0200, Alexandre Chartre wrote: >> On 7/12/19 1:44 PM, Peter Zijlstra wrote: > >>> AFAIK3 this wants/needs to be combined with core-scheduling to be >>> useful, but not a single mention of that is anywhere. >> >> No. This is actually an alternative to core-scheduling. Eventually, ASI >> will kick all sibling hyperthreads when exiting isolation and it needs to >> run with the full kernel page-table (note that's currently not in these >> patches). >> >> So ASI can be seen as an optimization to disabling hyperthreading: instead >> of just disabling hyperthreading you run with ASI, and when ASI can't preserve >> isolation you will basically run with a single thread. > > You can't do that without much of the scheduler changes present in the > core-scheduling patches. > We hope we can do that without the whole core-scheduling mechanism. The idea is to send an IPI to all sibling hyperthreads. This IPI will interrupt these sibling hyperthreads and have them wait for a condition that will allow them to resume execution (for example when re-entering isolation). We are investigating this in parallel to ASI. alex.