From: Sander Eikelenboom Subject: Re: [Xen-devel] [v4][PATCH 2/5] xen, gfx passthrough: create intel isa bridge Date: Tue, 3 Jun 2014 14:38:12 +0200 Message-ID: <208604450.20140603143812@eikelenboom.it> References: <1401440369-29929-1-git-send-email-tiejun.chen@intel.com> <1401440369-29929-3-git-send-email-tiejun.chen@intel.com> <538D8B59.4070105@redhat.com> <538DB4B4.6000602@eu.citrix.com> <13644003.20140603142115@eikelenboom.it> <538DBE88.2090607@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <538DBE88.2090607@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Paolo Bonzini Cc: peter.maydell@linaro.org, xen-devel@lists.xensource.com, Ian Campbell , mst@redhat.com, George Dunlap , allen.m.kay@intel.com, Stefano Stabellini , Ian Jackson , Kelly.Zytaruk@amd.com, qemu-devel@nongnu.org, anthony.perard@citrix.com, Tim Deegan , Anthony Liguori , yang.z.zhang@intel.com, Tiejun Chen , George Dunlap , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org Tuesday, June 3, 2014, 2:24:40 PM, you wrote: > Il 03/06/2014 14:21, Sander Eikelenboom ha scritto: >> >> The last part should perhaps be fixed in the driver/firmware (for instance >> the assumption the device is always device 00:02.0, that's valid for real intel >> hardware, but not necessary for passthrough or emulation). A requirement for >> using the latest firmware/drivers for passthrough to work could be acceptable i >> guess ? > The problem is worse than that. The assumptions are that the driver can > make choices based on the device/vendor IDs of 00:1f.0, and that the > driver can read/write to the config space of 00:00.0. > Paolo It's quite tempting to start making assumptions and shortcuts when writing drivers for hardware fixed in a platfrom (IGD's), they probably wouldn't have done that when they were also making seperate PCI(-e) graphic cards with these chips because it would blow up on all sorts of machines (which is what happens now when trying to pass it through (or emulate it) on another platform). -- Sander