From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jike Song Subject: Re: [RFC PATCH 0/8] Add host i915 support for vGPU Date: Thu, 23 Oct 2014 11:13:51 +0800 Message-ID: <5448726F.60401@intel.com> References: <1412071538-19059-1-git-send-email-jike.song@intel.com> <20141022094832.GS26941@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 5841F6E3B7 for ; Wed, 22 Oct 2014 20:16:42 -0700 (PDT) In-Reply-To: <20141022094832.GS26941@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter Cc: daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On 10/22/2014 05:48 PM, Daniel Vetter wrote: > So on a very high level I don't understand this design. For the guest side > it's completely clear that we need a bunch of hooks over the driver to > make paravirtualization work. > > But on the host side I expect the driver to be in full control of the > hardware. I haven't really seen the other side but it looks like with vgt > we actually have two drivers fighting over the hardware, which requires > the various hooks to avoid disaster. The drm subsystem is littered with > such attempts, and they all didn't end up in a pretty way. > > So way can't we have the vgt support for guests sit on top of i915, using > the i915 functions to set up pagetables, contexts and reserve gtt areas > for the guests? Then we'd have just one driver in control of the hardware, > and vgt on the host side would just look like a really crazy interace > layer between virtual hosts and the low-level driver, similar to who the > execbuf ioctl is a really crazy interface between userspace and the > low-level driver. Yes we can do this, but that also means lots of pollution to existing i915 codes, only for virtualization purpose. Currently vgt has pretty abstractions for both host i915 and guest graphics drivers, mixing vgt and host i915 means breaking that. I believe a vgt-integrated repository will be better to look at :) > > Cheers, Daniel > -- Thanks, Jike