Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8363965ybl; Thu, 16 Jan 2020 15:24:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwvAtgZ5JMZzCYXxXMvDpVUraBub7UevFqrL5rcj6YuRRlH+aFj60yqFyjuHAJe+f8J9rVv X-Received: by 2002:aca:4ec3:: with SMTP id c186mr1303350oib.53.1579217048889; Thu, 16 Jan 2020 15:24:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579217048; cv=none; d=google.com; s=arc-20160816; b=ywvFdu1AzFRDJPLTKvPum9GSNsblIR1kNPWt2jZvUY0V3DNr7n52HlRvMmtN7L4Ii7 gqfSEUDnlwC8bRGO96qijVXB5XfZjR4+LzBMJvZ2zg8tUh2OntYUxk1RmJ2e8rjkGv/h n7fTe4MZmJDKM10R0pP7Oslb4OQBX3WMBySLE0f+IfeWU7tPlD05v06tuCuveba5upbY HrRsOQ6f4o77mQCy8Az04jm/MGTLwyFt2l5tICKCvs0/QN1WQpRHc45kZRa7ivTwewHL oPxArO0YTmnJQUDGZBeFr9pzBqU9GqyDErHYelTjJlpgPonUM8abi2AZq5IZ3WzIGrSh lDqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SpfjVnIVnBGLilCkMpK6GIb+rFOGyIPmXILu91Fve7U=; b=VQjzdtVWi/Z7r+GMbnlmV0QKHXiuz7aKarLWbwYRA+7ozK5+yhJ3i2ekWfHacF3Wic eFdRcbp74mhjJsrzUyR+d/uXCXqKBQ1u+3R21qLlbOY/KR/RMNNgFxKRyYjm/LayW6yY IfKEeHQDUOmerGw/3sm5DcCMXR1K7DmvN4Ln+PRykKaNwMJK5KykX8LZfJsPfqmcMhX7 UlEZQ492ThCBqXFDpwfu7hTty3IMLHWNDYEIKpmfkgC1yPxwwRG7htWkcizAHLYj2uTf FFjM53UmKsN6kYZSokevHWqlm5YqdopVCV3ltbm88+RZisXTmzH/vpalurpzJ8dpAXLl +4cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NWyeid1G; 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 q25si14936398otg.128.2020.01.16.15.23.57; Thu, 16 Jan 2020 15:24:08 -0800 (PST) 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=@kernel.org header.s=default header.b=NWyeid1G; 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 S1730157AbgAPTsg (ORCPT + 99 others); Thu, 16 Jan 2020 14:48:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:43418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730056AbgAPTsd (ORCPT ); Thu, 16 Jan 2020 14:48:33 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4660520730; Thu, 16 Jan 2020 19:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579204112; bh=eCRmzjTIyjfbPAe/mgLEe93bWWVURDrSsFcpf6uROXM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NWyeid1GitOMqE3prMch6/hWlduNt9sJY2Qz8f5orJr7pXXcK5jrOwHt2yPJo5JAt qkSGn8BCTgaxWqLcPZqSdnGSmNEBlVaiDlOwiYiS2wBtUgjGvdBR+GLL7PxGIY8xKt QXCC908Z+SglQ58IDwsYgrc1X/SAahZRdscSSY20= Date: Thu, 16 Jan 2020 20:48:30 +0100 From: Greg KH To: Julian Stecklina Cc: intel-gvt-dev@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, zhiyuan.lv@intel.com, hang.yuan@intel.com, Zhenyu Wang , Thomas Prescher Subject: Re: [RFC PATCH 4/4] drm/i915/gvt: move public gvt headers out into global include Message-ID: <20200116194830.GA1072059@kroah.com> References: <4079ce7c26a2d2a3c7e0828ed1ea6008d6e2c805.camel@cyberus-technology.de> <20200109171357.115936-1-julian.stecklina@cyberus-technology.de> <20200109171357.115936-5-julian.stecklina@cyberus-technology.de> <20200115152215.GA3830321@kroah.com> <9b32e225ee680e61716e300eb1ed8387599cc0dd.camel@cyberus-technology.de> <20200116142345.GA476889@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 04:05:22PM +0100, Julian Stecklina wrote: > Hi Greg, > > On Thu, 2020-01-16 at 15:23 +0100, Greg KH wrote: > > On Thu, Jan 16, 2020 at 03:13:01PM +0100, Julian Stecklina wrote: > > > Hi Greg, Christoph, > > > > > > On Wed, 2020-01-15 at 16:22 +0100, Greg KH wrote: > > > > On Thu, Jan 09, 2020 at 07:13:57PM +0200, Julian Stecklina wrote: > > > > > Now that the GVT interface to hypervisors does not depend on i915/GVT > > > > > internals anymore, we can move the headers to the global include/. > > > > > > > > > > This makes out-of-tree modules for hypervisor integration possible. > > > > > > > > What kind of out-of-tree modules do you need/want for this? > > > > > > The mediated virtualization support in the i915 driver needs a backend to > > > the > > > hypervisor. There is currently one backend for KVM in the tree > > > (drivers/gpu/drm/i915/gvt/kvmgt.c) and at least 3 other hypervisor backends > > > out > > > of tree in various states of development that I know of. We are currently > > > developing one of these. > > > > Great, then just submit this patch series as part of your patch series > > when submitting yoru hypervisor code. That's the normal way to export > > new symbols, we can't do so without an in-kernel user. > > Fair enough. > > As I already said, the KVMGT code is the in-kernel user. But I guess I can > extend the already existing function pointer way of decoupling KVMGT from i915 > and be on my way without exporting any symbols. > > Somewhat independent of the current discussion, I also think that it's valuable > to have a defined API (I'm not saying stable API) for the hypervisor backends to > define what's okay and not okay for them to do. The only way to get a "good" api is for at least 3 users of them get into the kernel tree. If all you have is one or two, then you go with what you got, and evolve over time as more get added and find better ways to use them. In short, it's just basic evolution, not intelligent design :) thanks, greg k-h