From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 790C4C04AB4 for ; Tue, 14 May 2019 07:21:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4092221473 for ; Tue, 14 May 2019 07:21:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="dMyL7yFy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726598AbfENHVS (ORCPT ); Tue, 14 May 2019 03:21:18 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59052 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbfENHVR (ORCPT ); Tue, 14 May 2019 03:21:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5gY/FrzuJKQ2FR01A0lkoDKVYEffpMYlDw1IyGNKjYo=; b=dMyL7yFyBotXpf1bhUBEB/ekM rQHrC1RIyHATgW4sGM/lBtPM6Q/ir3W3nlIwq6M3NSy+7bl37qJAqZoiNp/rifd429r2FJQdiOwxC km7Km+Q0BaJrO26RbBUBd+yQ860nWQWEkhMu90tG+wHL1keHeJAFl42CxKjSUH18D75mSs9yFSDNK h/lkar2wvBlMUAD/qOXOEaaWAV6UMzx8YxoCbXPWPN7gvV0T28tvGXgicl24PuM7qeSIjyavVCsGY 48pfo7ItD50RW8r2+DtYofmZyPaZ+/cN5U455nWPteIReQsZ7sBrNHp8pVGyPNIbEB5a3E7YHC0pW Bkzm3CScQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQRkO-00038y-3x; Tue, 14 May 2019 07:21:12 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6F1B82029F87A; Tue, 14 May 2019 09:21:10 +0200 (CEST) Date: Tue, 14 May 2019 09:21:10 +0200 From: Peter Zijlstra To: Andy Lutomirski Cc: Liran Alon , Alexandre Chartre , 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 Subject: Re: [RFC KVM 24/27] kvm/isolation: KVM page fault handler Message-ID: <20190514072110.GF2589@hirez.programming.kicks-ass.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.