Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6049843yba; Tue, 14 May 2019 00:22:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgRpmsJyBAXbmIEYKuQ1YiW6W8qIMjW8NatO7QWb/THThj/zfNBtCL1N/ZuShs7EP/5BNn X-Received: by 2002:a17:902:bc85:: with SMTP id bb5mr36170224plb.310.1557818562015; Tue, 14 May 2019 00:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557818562; cv=none; d=google.com; s=arc-20160816; b=W5z9gc5Qh5wvffZ7r388GciklHJr4KCuMS3Ji8uioxc6IAvqsO3czCRaEPevj9u2JM AyZopzk7s7zfKyHmFyIf02zWvBUt9f/ZJjVFHmcOEIn332rfwhTxplWZjMgUsdpgq/XL Dp8Pm/MyagCkQT4kOd1w+8UAL0Ruxc87PzKRwcavLq8n7sKJFLd6/24ecjvBK4nXJtvb b3evlzeNq4HQmfBiCfcP7nP1C0mUrGGGJS/AkbLf8BesjunMoyZ224wsjlar70FZPKkA GDgWRV1f9h9//i9AWKmKWElJBC0MMjSK5K7VIJpcKTlpVSWOSJjS+qyTuOEF41LBDYwH lDQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5gY/FrzuJKQ2FR01A0lkoDKVYEffpMYlDw1IyGNKjYo=; b=zmXht1L+sJW7qIN8aNFiXRy3uStC2YyDKra8ullKH9evFnvGt0OOICYMw9i7G5HdSK Z8WK3FA39jt9Q4KF64CidChfXFgh2DwoHajxMOSfsLTFw78PNP7w+0G/EcPL+Fgs+uj2 LqFRdWT6qUBsIT4yxyYd+APWNGfIB2/6ew8c15J2YZevbnOUVk/BE/yW8Fserys2/p6j +iGVpGF546I9cZmgsyty9EpTtzkab64pJu74mAxN+wTvnvt39G+dMuLQ/ZwYRQ1Pcf64 UGHfgouGfMqfuI8lcAgQOvTV8xf2T/KDOsz8IWMDX+mz4IE0+WXkJoIwqLAy6WcW7YB8 9G0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dMyL7yFy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si19053809pge.550.2019.05.14.00.22.26; Tue, 14 May 2019 00:22:42 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dMyL7yFy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726574AbfENHVS (ORCPT + 99 others); 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.