Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752152AbcLERoy convert rfc822-to-8bit (ORCPT ); Mon, 5 Dec 2016 12:44:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56750 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751327AbcLERov (ORCPT ); Mon, 5 Dec 2016 12:44:51 -0500 Message-ID: <1480959854.28320.21.camel@redhat.com> Subject: Re: [PATCH v9 00/12] Add Mediated device support From: Gerd Hoffmann To: Jike Song Cc: Kirti Wankhede , alex.williamson@redhat.com, cjia@nvidia.com, pbonzini@redhat.com, qemu-devel@nongnu.org, kvm@vger.kernel.org, kevin.tian@intel.com, bjsdjshi@linux.vnet.ibm.com, linux-kernel@vger.kernel.org Date: Mon, 05 Dec 2016 18:44:14 +0100 In-Reply-To: <580DB32F.8040806@intel.com> References: <1476739332-4911-1-git-send-email-kwankhede@nvidia.com> <580DB32F.8040806@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Mime-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 05 Dec 2016 17:44:16 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1403 Lines: 47 Hi, > Just want to share that we have published a KVMGT implementation > based on this v9 patchset, to: > > https://github.com/01org/gvt-linux/tree/gvt-next-kvmgt > > It doesn't utilize common routines introduced by 05+ patches yet. > The complete intel vGPU device-model is contained. Tried to use this implementation. Used the topic/gvt-next-kvmgt-mdev-2016-11-18 branch which looked like the most recent one. Setup: * Everything compiled as modules. * iommu turned off for the igd (intel_iommu=on,igfx_off). * Blacklisted i915 so dracut initrd doesn't load it (rd.driver.blacklist=i915) * tweaked module config so kvmgt is loaded before i915, also enable gvt: # cat /etc/modprobe.d/kraxel-gvt.conf options i915 enable_gvt=1 softdep i915 pre: kvmgt Everything seems to load fine. Sysfs files are there, and I can create vgpus. Trying to assign a vgpu this way: -device vfio-pci,sysfsdev=/sys/class/mdev_bus/0000:00:02.0/ fails though and gives this message in the kernel log: [ 402.560350] [drm:intel_vgpu_open [kvmgt]] *ERROR* gvt: KVM is required to use Intel vGPU Trying the same with a mtty sample device works and I can see the pci serial device in the guest. Any clues what is going wrong? Has this version any support for exporting the guest display as dma-buf, so qemu can show it? Or is this a headless vgpu? thanks, Gerd