Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp74689pxh; Tue, 9 Nov 2021 07:32:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzG6yI9sIkc7lVHTSCtaZb5FFjs81k52Pm5oOBDGGeJ6lszJhyCg/NJ9+NTWbJPXgLjB3WM X-Received: by 2002:a05:6602:2c0d:: with SMTP id w13mr5543956iov.79.1636471926134; Tue, 09 Nov 2021 07:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636471926; cv=none; d=google.com; s=arc-20160816; b=AlssCcYqDESjX44r4TNQzWQalMDZsKKZ9YTlrrun9eFSPqezWIc9Lj0fLebDNo+lDW 6/m/Ms7E3A4hg59oJGZllUxP/1czRrN1u3sbKNg+01V467a7aaj9Yjwtphl2KJ8MNH8N oYxcuRHMGAk29ix4RfIsW627DRJHdLIsKxoxY83PHEKcT6IFcKhub1UDUMrmxa2f93nQ 7ty0mmEb0XpnCDgOOQtgg/yBU+ewXCAwVcj0o98ZjnELnftkSpAOzaYBbyEujUo/CXfM dp2XQ9LhJvE90ZouKkwAaVLrP/S6XDuHavxjZxfs/CgP+fYAF/7h5N4bUVbGhu2LTwhA 04dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=RaZ+G0k2HHXXhvHqqINHRjctzBwkhqjp32yYI5pUIvM=; b=DRnqHd6Bj2NvMGgwcwdI/bam/ArQF17M9ofnuXR+sxDUYwG7H2vlDgY5aVcgwO8A38 Ex6T2VWzkYiX2cZETo1D/I+BraORdwgoZ6UtTpd33efaUEjzMpG+7JOt/HsM7eBA8e2S 67QUckTLBm60HkvX6unKXymKqRN4gw4Lt4qvzEaV5gm3UibNWJGKdfeXQzFxH5iOI2kU uflysfBySL0Lbn/MOqpm8nffoeOJsU1xrD0Z3mZsoyjhvguU1/42X3kmPbZHyFLftaui G88YHqe9WPVs2zvopLzRGCLWw2UCmAkikxx9Wy+mfUVHy1Iy3hiWbvOPGDoFwVIAgmrt HIng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si29611859jam.80.2021.11.09.07.31.53; Tue, 09 Nov 2021 07:32:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243881AbhKIICp (ORCPT + 99 others); Tue, 9 Nov 2021 03:02:45 -0500 Received: from verein.lst.de ([213.95.11.211]:48931 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241451AbhKIICp (ORCPT ); Tue, 9 Nov 2021 03:02:45 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 5D03968AA6; Tue, 9 Nov 2021 08:59:57 +0100 (CET) Date: Tue, 9 Nov 2021 08:59:57 +0100 From: Christoph Hellwig To: Joonas Lahtinen Cc: Christoph Hellwig , Jani Nikula , Rodrigo Vivi , Zhenyu Wang , Zhi Wang , Jason Gunthorpe , intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: refactor the i915 GVT support and move to the modern mdev API v2 Message-ID: <20211109075957.GC27339@lst.de> References: <20211102070601.155501-1-hch@lst.de> <163603075885.4807.880888219859400958@jlahtine-mobl.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163603075885.4807.880888219859400958@jlahtine-mobl.ger.corp.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 04, 2021 at 02:59:18PM +0200, Joonas Lahtinen wrote: > The minimal we should do is to eliminate the double underscore > prefixed functions. But I would prefer to have the symbol exports by > default so that we can enable the functionality just by loading the > module. I'm fine with exporting by default, but just loading won't really work even with that: - there are a bunch of IS_ENABLED conditionals in the i915 (although they look like minor optimizations to me). - the enable_gvt needs to be set, although after this refactor this option is completely pointless and should probably be enabled - the enable_guc option needs to be disable for gvt to work.