Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6506506yba; Tue, 14 May 2019 08:39:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkC3nGYbWoCdZvcZxF7BUniE3PJY+AYTmj25S0R8R1PkPuebLr7JWpiIHdfcpoppeB2jBv X-Received: by 2002:a63:88c7:: with SMTP id l190mr38763093pgd.244.1557848395184; Tue, 14 May 2019 08:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557848395; cv=none; d=google.com; s=arc-20160816; b=qQ6b9Ktd9cH3i6V08psslyL6qALth6sJeZ3m02sablYzWNGJ47Nhgec6FGWgSozxWj /shBrJy0XnDQ2bskrRZ0LGEnl9oM5bdcTwEeRfjAJtI5W374IInQoIJup57GqP/xyZIZ 7a6rj5dudMuXLa15AFpONmTCVu+2vXtFUSmuAQkN/Qq9Nt+VojNSQI5Tm1V3P9syXrrK k22N1aVw2gdWQnZOtTfQtta9pPwxQdxwGQNY5ul/hadvrJPETYnresH1Q7a5kaY4+cbz I2X9eIyQDwnKMF9LmoNFgYSbEPclEszV7sv9EU6c8NU9QOSI1Ahf3NjjH4FNy9B1yGvH 65mw== 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=K6RAKYDjcjRrn7OwP84UHYgsO7ChGZaEr+sqPb3xwhc=; b=SkvP0C4MDyctAGjBVoACOjgzTWwn9AR3dolP/zvxh/eHwzgyewey4SVzeJwx+0PM6K CvhMQZQmJqKMn2jsjvbIObrCxrrnl9VSZzLfMo+3QTVUKrCJJsVUKny9vEXlTVZlK1u2 YtYHL5UF/1r+5Fwr3xSQ+x5uXsaWoCANPfy73t39LykmzyDX4HFNwwehvNCrTH3Uwz3/ 75aD2x9U0x2cdmtFKefYHsi0rJITUmVzygD3ZiMKEUns8Jh2Z9+aBRIu5pXkdsPKYwUj SIdS2yN2Towv5M9J1ZiZJTk81dXNBRFw1W8lY6XLyIBtgy0+1/qPAFc9/VIficHoHzXz 7tHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="5XJ/WDUH"; 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 o70si21709462pfa.33.2019.05.14.08.39.41; Tue, 14 May 2019 08:39:55 -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="5XJ/WDUH"; 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 S1726472AbfENPh6 (ORCPT + 99 others); Tue, 14 May 2019 11:37:58 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:41286 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfENPh6 (ORCPT ); Tue, 14 May 2019 11:37:58 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4EFY5Ad041917; Tue, 14 May 2019 15:36:59 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=K6RAKYDjcjRrn7OwP84UHYgsO7ChGZaEr+sqPb3xwhc=; b=5XJ/WDUHZ0rtX1wy7iGiSQInjd4Yje8V0Nmw7F2TpN62bao4hby9ViD40alDqoIimCcT IqmNrySa/hvm/yvNnPV7kAphqhwRpXXmIo9tmtGOcJefID4qORAU6rmiyGDpSb8VzGkL wb2TZXj3OraOSmMlRjSCXoGgbjRn5+uqIUwZ+EjtnghualrShvTzaqilDUUKkav3ZVEG DUvMwQXC/emAR1qaIFGPMioz6EbIWV+l5UJVwALQDf2XpMOl/tGCRp2uLVjWvH3o5D1j ygyljCSo8K2hmvy8qbg334BYRGKGGy7EcRlTxjFeqnVaX0FP4NSfdl91Nuo1L4e/hW2f uQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2sdnttpxv1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 May 2019 15:36:59 +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 x4EFZLrw135409; Tue, 14 May 2019 15:36:59 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2se0tw7m68-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 May 2019 15:36:58 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x4EFatFM011608; Tue, 14 May 2019 15:36:56 GMT Received: from [10.166.106.34] (/10.166.106.34) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 14 May 2019 08:36:54 -0700 Subject: Re: [RFC KVM 24/27] kvm/isolation: KVM page fault handler To: Peter Zijlstra , Andy Lutomirski Cc: Liran Alon , Paolo Bonzini , Radim Krcmar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Dave Hansen , kvm list , X86 ML , Linux-MM , LKML , Konrad Rzeszutek Wilk , jan.setjeeilers@oracle.com, Jonathan Adams References: <1557758315-12667-1-git-send-email-alexandre.chartre@oracle.com> <1557758315-12667-25-git-send-email-alexandre.chartre@oracle.com> <20190513151500.GY2589@hirez.programming.kicks-ass.net> <13F2FA4F-116F-40C6-9472-A1DE689FE061@oracle.com> <20190514072110.GF2589@hirez.programming.kicks-ass.net> From: Alexandre Chartre Organization: Oracle Corporation Message-ID: <95f462d4-37d3-f863-b7c6-2bcbb92251ec@oracle.com> Date: Tue, 14 May 2019 17:36:51 +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: <20190514072110.GF2589@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=5900 definitions=9256 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=941 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905140109 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9256 signatures=668686 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=973 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905140110 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/14/19 9:21 AM, Peter Zijlstra wrote: > On Mon, May 13, 2019 at 07:02:30PM -0700, Andy Lutomirski wrote: > >> This sounds like a great use case for static_call(). PeterZ, do you >> suppose we could wire up static_call() with the module infrastructure >> to make it easy to do "static_call to such-and-such GPL module symbol >> if that symbol is in a loaded module, else nop"? > > You're basically asking it to do dynamic linking. And I suppose that is > technically possible. > > However, I'm really starting to think kvm (or at least these parts of it > that want to play these games) had better not be a module anymore. > Maybe we can use an atomic notifier (e.g. page_fault_notifier)? alex.