Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2427801ybl; Thu, 9 Jan 2020 12:34:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyIsnt9RH8xjedDMqfR6W/3pd1m+9jLnLXgw4M863/Q4nGLbrzBD1/fsQ2CNDvCyn1VhGTG X-Received: by 2002:a9d:c02:: with SMTP id 2mr10285932otr.183.1578602066134; Thu, 09 Jan 2020 12:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578602066; cv=none; d=google.com; s=arc-20160816; b=FbZ4KP4MHEjYoCG5QcjtR2aN7gMM1Sopu9HV6Y459EuaFU6Og84PiC37lv4Z//0veR SbpOnPmFt81UF20jKXLML3QkU3bgO/jSDmz/rJc/3hpXYDfatHJJR3EyIxNjtxBaW3+I DTMtxurPWT9Utu4fZipI2xyl3RpumVgRPiuShaJwRvO/BP9yIz3kFCKb14lHMWUl5T4+ 64hFz50ZSW+5Mfj/ijIxMIN0APw7spYthD/Eqq42HTxKzPLiSLPm33zPh9563p6GsCgd 12FhKIK3agTXIqu69cdxf7jP7OcaK4zd77cM87UT4KuX1HOsEvyOcITbkPo4wfJpJ9jC ZU7Q== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eVK3qcP+C0X2No4jeiblUro/rWSKEKB9v5M7ETmBrrw=; b=q8RZPokkIALZG2+MpR81jBpMipXFEGVe97Ro+cvEn0wMAwmASrweuvd4IPElj4Zpw9 fZxvoeyRBOwDB11s4RdK9ke52DdU1ccoHvosHRcVOM0FD9aBeEsBT53ftn+CMtkne9nu wINWAAyrgO2LIiDQq9v/4YrV34WhAD8LCfVwLZxL24Q49jQ9uQzUBQ7ux4nZ1wx8cQq4 n+VSraTFOXi7scOBbtLJYiXajr5zlMsQjtJ0YVqFVtk0cZZyBearzW7ld0RAe9ShMdnB M4fu+YsksTtgJIKDhwplVxMYnaqhYD75+Ha8UitApSsvpadLlyS1ScdRQlJKQA91fUMv f8XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cyberus-technology.de header.s=default1911 header.b=IWDLoccs; 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 c186si3970753oib.103.2020.01.09.12.34.14; Thu, 09 Jan 2020 12:34:26 -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=fail header.i=@cyberus-technology.de header.s=default1911 header.b=IWDLoccs; 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 S2388040AbgAIRO1 (ORCPT + 99 others); Thu, 9 Jan 2020 12:14:27 -0500 Received: from www413.your-server.de ([88.198.28.140]:39580 "EHLO www413.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731530AbgAIROV (ORCPT ); Thu, 9 Jan 2020 12:14:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cyberus-technology.de; s=default1911; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type: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=eVK3qcP+C0X2No4jeiblUro/rWSKEKB9v5M7ETmBrrw=; b=IWDLoccswBwBeHjyI9yjPSGksI WBJ1XrIr3lvVWAtx9TN+BmctmvcE70SofZ3UJaiKprl7CUL5jbsGeXOhSAhPyHhr7PYP9VT6MtShd 8dt1nrFnbLPxQ4FbPWjopPJufuZDcrZlNBmRGrBiNJoRpC4DAmwVLQrV+7NbrjyMk9DWHrFvnDIxg 7V9fs6NAKKBNMcY+uB8MYr35TmObFVrq8R53caxlXPHuD01O3L9CO3E8SuADKQMrK77J8WdHsGL2t xF/Ym9atnNRG9ilkXbhJMwo/7BQsx99Cwy9a58STbtA0ilHPmdvEGnXx7CZTh6plRhFqpoiAd4wrx HIlL1SkA==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www413.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1ipbNz-0002W9-Go; Thu, 09 Jan 2020 18:14:19 +0100 Received: from [24.134.37.229] (helo=192-168-0-109.rdsnet.ro) by sslproxy02.your-server.de with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.92) (envelope-from ) id 1ipbNz-000Eh8-7V; Thu, 09 Jan 2020 18:14:19 +0100 From: Julian Stecklina To: intel-gvt-dev@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, zhiyuan.lv@intel.com, hang.yuan@intel.com, Julian Stecklina , Zhenyu Wang Subject: [RFC PATCH 4/4] drm/i915/gvt: move public gvt headers out into global include Date: Thu, 9 Jan 2020 19:13:57 +0200 Message-Id: <20200109171357.115936-5-julian.stecklina@cyberus-technology.de> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200109171357.115936-1-julian.stecklina@cyberus-technology.de> References: <4079ce7c26a2d2a3c7e0828ed1ea6008d6e2c805.camel@cyberus-technology.de> <20200109171357.115936-1-julian.stecklina@cyberus-technology.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Sender: julian.stecklina@cyberus-technology.de X-Virus-Scanned: Clear (ClamAV 0.101.4/25689/Thu Jan 9 10:59:33 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: Zhenyu Wang Signed-off-by: Julian Stecklina --- drivers/gpu/drm/i915/gvt/gvt.h | 3 +-- drivers/gpu/drm/i915/gvt/kvmgt.c | 2 +- .../i915/gvt/gvt_public.h => include/drm/i915_gvt.h | 8 ++++---- .../hypercall.h => include/drm/i915_gvt_hypercall.h | 10 +++++++--- 4 files changed, 13 insertions(+), 10 deletions(-) rename drivers/gpu/drm/i915/gvt/gvt_public.h => include/drm/i915_gvt.h (97%) rename drivers/gpu/drm/i915/gvt/hypercall.h => include/drm/i915_gvt_hypercall.h (95%) diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index f9693c44e342..d09374aa7710 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -33,9 +33,8 @@ #ifndef _GVT_H_ #define _GVT_H_ -#include "gvt_public.h" +#include #include "debug.h" -#include "hypercall.h" #include "mmio.h" #include "reg.h" #include "interrupt.h" diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c index f5157211d45f..280d69ca964b 100644 --- a/drivers/gpu/drm/i915/gvt/kvmgt.c +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c @@ -28,6 +28,7 @@ * Xiaoguang Chen */ +#include #include #include #include @@ -52,7 +53,6 @@ #include #include "debug.h" -#include "gvt_public.h" static const struct intel_gvt_ops *intel_gvt_ops; diff --git a/drivers/gpu/drm/i915/gvt/gvt_public.h b/include/drm/i915_gvt.h similarity index 97% rename from drivers/gpu/drm/i915/gvt/gvt_public.h rename to include/drm/i915_gvt.h index 23bf1235e1a1..3926ca32f773 100644 --- a/drivers/gpu/drm/i915/gvt/gvt_public.h +++ b/include/drm/i915_gvt.h @@ -21,10 +21,10 @@ * SOFTWARE. */ -#ifndef _GVT_PUBLIC_H_ -#define _GVT_PUBLIC_H_ +#ifndef _I915_GVT_H_ +#define _I915_GVT_H_ -#include "hypercall.h" +#include struct attribute; struct attribute_group; @@ -101,4 +101,4 @@ bool intel_gvt_in_gtt(struct intel_vgpu *vgpu, u64 off); struct dentry *intel_vgpu_debugfs(struct intel_vgpu *vgpu); -#endif /* _GVT_PUBLIC_H_ */ +#endif /* _I915_GVT_H_ */ diff --git a/drivers/gpu/drm/i915/gvt/hypercall.h b/include/drm/i915_gvt_hypercall.h similarity index 95% rename from drivers/gpu/drm/i915/gvt/hypercall.h rename to include/drm/i915_gvt_hypercall.h index 7ed33e4919a3..c26eef7dbdde 100644 --- a/drivers/gpu/drm/i915/gvt/hypercall.h +++ b/include/drm/i915_gvt_hypercall.h @@ -30,8 +30,12 @@ * */ -#ifndef _GVT_HYPERCALL_H_ -#define _GVT_HYPERCALL_H_ +#ifndef _I915_GVT_HYPERCALL_H_ +#define _I915_GVT_HYPERCALL_H_ + +#include + +struct device; #include @@ -84,4 +88,4 @@ extern struct intel_gvt_mpt xengt_mpt; int intel_gvt_register_hypervisor(struct intel_gvt_mpt *); void intel_gvt_unregister_hypervisor(void); -#endif /* _GVT_HYPERCALL_H_ */ +#endif /* _I915_GVT_HYPERCALL_H_ */ -- 2.24.1