From patchwork Tue Apr 14 08:36:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhenyu Wang X-Patchwork-Id: 11487067 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8CA60112C for ; Tue, 14 Apr 2020 08:50:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7474C206E9 for ; Tue, 14 Apr 2020 08:50:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7474C206E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B6ACD6E4A2; Tue, 14 Apr 2020 08:50:12 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 36A576E4A2; Tue, 14 Apr 2020 08:50:11 +0000 (UTC) IronPort-SDR: 4DJDAn+tYnHYNwce9wvJnikERY7ST1Sx9+f7D/efBPkg4L9/IrtZrw+ia14Y1pV59mAdKcORmb zOsjRRB9tc+w== X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 01:50:10 -0700 IronPort-SDR: q0hvaMKfW/Y0+ztXDEBq4CDOUp6ylYPrQ9bm5Lm1c6Nlf8zLxvb+FttuwKboDUzeQJYARt11Ux 1OCiI0VNagFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,382,1580803200"; d="asc'?scan'208";a="256446161" Received: from zhen-hp.sh.intel.com (HELO zhen-hp) ([10.239.160.147]) by orsmga006.jf.intel.com with ESMTP; 14 Apr 2020 01:50:07 -0700 Date: Tue, 14 Apr 2020 16:36:26 +0800 From: Zhenyu Wang To: "Vivi, Rodrigo" , Jani Nikula , Joonas Lahtinen Message-ID: <20200414083626.GQ11247@zhen-hp.sh.intel.com> MIME-Version: 1.0 User-Agent: Mutt/1.10.0 (2018-05-17) Subject: [Intel-gfx] [PULL] gvt-fixes X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Zhenyu Wang Cc: intel-gfx , intel-gvt-dev , "Lv, Zhiyuan" , "Yuan, Hang" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi, As I stated in last pull (https://lists.freedesktop.org/archives/intel-gvt-dev/2020-April/006542.html), this one includes gvt fixes for guest page access by using VFIO interface instead, so remove the concern from KVM and do the right thing. Thanks --- The following changes since commit bcad588dea538a4fc173d16a90a005536ec8dbf2: drm/i915/perf: Do not clear pollin for small user read buffers (2020-04-13 14:09:48 -0700) are available in the Git repository at: https://github.com/intel/gvt-linux tags/gvt-fixes-2020-04-14 for you to fetch changes up to ec7301d5146c9abe8aaf6e16e420ea3951018503: drm/i915/gvt: switch to user vfio_group_pin/upin_pages (2020-04-14 16:30:17 +0800) ---------------------------------------------------------------- gvt-fixes-2020-04-14 - Fix guest page access by using VFIO dma r/w interface (Yan) ---------------------------------------------------------------- Yan Zhao (3): drm/i915/gvt: hold reference of VFIO group during opening of vgpu drm/i915/gvt: subsitute kvm_read/write_guest with vfio_dma_rw drm/i915/gvt: switch to user vfio_group_pin/upin_pages drivers/gpu/drm/i915/gvt/kvmgt.c | 46 +++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 24 deletions(-)