Han, Weidong
2010-Feb-04 08:12 UTC
[Xen-devel][PATCH 0/3] VT-d: support Intel IGD passthrough
The patchset supports Intel IGD passthrough in Xen. There are some assumptions/dependencies on chipset, VBIOS, and even drivers for IGD. But virtual platform is not aware of it. This patchset handles it to make IGD work in guest. What''s more, FLR capability of IGD is not exposed on some platforms, this patchset uses vendor specific FLR to reset those IGDs. Also add an option into hvm config file to enable graphics passthrough. The patchset was tested in Intel McCreary platform, guest WinXP, Win7 and Linux all worked. Patch 1: qemu-igd.patch: Some registers of Intel IGD are mapped in host bridge, so it needs to passthrough these registers of physical host bridge to guest because emulated host bridge in guest doesn''t have these mappings. Some VBIOSs and drivers assume the IGD BDF (bus:device:function) is always 00:02.0, so this patch reserves 00:02.0 for assigned IGD in guest. Patch 2: igd-flr.patch: Due to FLR capability of IGD is not exposed on some platforms, this patch uses vendor specific FLR to reset those IGDs. Patch 3: gfx-conf.patch: The patch adds an option into hvm config file to enable graphics passthrough including discrete and IGD. To passthrough graphics to guest, need to set gfx_passthru=1, and also specify graphics device BDF in pci passthrough option, like pci=[''xx:xx.x''] in hvm config file. Signed-off-by: Weidong Han <weidong.han@intel.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2010-Feb-04 08:24 UTC
Re: [Xen-devel][PATCH 0/3] VT-d: support Intel IGD passthrough
Cc''ing Ian Jackson for applying patch 1/3. And I didn''t receive your patch 2/3. I''ve received and will apply your patch 3/3 however. -- Keir On 04/02/2010 08:12, "Han, Weidong" <weidong.han@intel.com> wrote:> The patchset supports Intel IGD passthrough in Xen. There are some > assumptions/dependencies on chipset, VBIOS, and even drivers for IGD. But > virtual platform is not aware of it. This patchset handles it to make IGD work > in guest. What''s more, FLR capability of IGD is not exposed on some platforms, > this patchset uses vendor specific FLR to reset those IGDs. > > Also add an option into hvm config file to enable graphics passthrough. > > The patchset was tested in Intel McCreary platform, guest WinXP, Win7 and > Linux all worked. > > Patch 1: qemu-igd.patch: > Some registers of Intel IGD are mapped in host bridge, so it needs to > passthrough these registers of physical host bridge to guest because emulated > host bridge in guest doesn''t have these mappings. > Some VBIOSs and drivers assume the IGD BDF (bus:device:function) is always > 00:02.0, so this patch reserves 00:02.0 for assigned IGD in guest. > > Patch 2: igd-flr.patch: > Due to FLR capability of IGD is not exposed on some platforms, this patch uses > vendor specific FLR to reset those IGDs. > > Patch 3: gfx-conf.patch: > The patch adds an option into hvm config file to enable graphics passthrough > including discrete and IGD. To passthrough graphics to guest, need to set > gfx_passthru=1, and also specify graphics device BDF in pci passthrough > option, like pci=[''xx:xx.x''] in hvm config file. > > > Signed-off-by: Weidong Han <weidong.han@intel.com>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Han, Weidong
2010-Feb-04 08:29 UTC
RE: [Xen-devel][PATCH 0/3] VT-d: support Intel IGD passthrough
Oops, I forgot to CC Ian. It''s weird the 2/3 patch was not sent out successfully. I will resend out it soon. Regards, Weidong -----Original Message----- From: Keir Fraser [mailto:keir.fraser@eu.citrix.com] Sent: Thursday, February 04, 2010 4:25 PM To: Han, Weidong; xen-devel@lists.xensource.com Cc: Kay, Allen M; Ian Jackson Subject: Re: [Xen-devel][PATCH 0/3] VT-d: support Intel IGD passthrough Cc''ing Ian Jackson for applying patch 1/3. And I didn''t receive your patch 2/3. I''ve received and will apply your patch 3/3 however. -- Keir On 04/02/2010 08:12, "Han, Weidong" <weidong.han@intel.com> wrote:> The patchset supports Intel IGD passthrough in Xen. There are some > assumptions/dependencies on chipset, VBIOS, and even drivers for IGD. But > virtual platform is not aware of it. This patchset handles it to make IGD work > in guest. What''s more, FLR capability of IGD is not exposed on some platforms, > this patchset uses vendor specific FLR to reset those IGDs. > > Also add an option into hvm config file to enable graphics passthrough. > > The patchset was tested in Intel McCreary platform, guest WinXP, Win7 and > Linux all worked. > > Patch 1: qemu-igd.patch: > Some registers of Intel IGD are mapped in host bridge, so it needs to > passthrough these registers of physical host bridge to guest because emulated > host bridge in guest doesn''t have these mappings. > Some VBIOSs and drivers assume the IGD BDF (bus:device:function) is always > 00:02.0, so this patch reserves 00:02.0 for assigned IGD in guest. > > Patch 2: igd-flr.patch: > Due to FLR capability of IGD is not exposed on some platforms, this patch uses > vendor specific FLR to reset those IGDs. > > Patch 3: gfx-conf.patch: > The patch adds an option into hvm config file to enable graphics passthrough > including discrete and IGD. To passthrough graphics to guest, need to set > gfx_passthru=1, and also specify graphics device BDF in pci passthrough > option, like pci=[''xx:xx.x''] in hvm config file. > > > Signed-off-by: Weidong Han <weidong.han@intel.com>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Christian Tramnitz
2010-Feb-04 12:15 UTC
[Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
Thanks for updating those patches to current xen. Is IGD pass-through also supposed to work when the IGD is not the primary gfx card? Best regards, Christian _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Han, Weidong
2010-Feb-05 02:11 UTC
RE: [Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
Current Xen only supports to pass-through primary gfx card. The secondary gfx pass-through patch is not in Xen yet. I think it needs to think more clearly about secondary gfx pass-through usage and implementation. Regards, Weidong -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Christian Tramnitz Sent: Thursday, February 04, 2010 8:15 PM To: xen-devel@lists.xensource.com Subject: [Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough Thanks for updating those patches to current xen. Is IGD pass-through also supposed to work when the IGD is not the primary gfx card? Best regards, Christian _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andrew Lyon
2010-Feb-06 12:51 UTC
Re: [Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
On Fri, Feb 5, 2010 at 2:11 AM, Han, Weidong <weidong.han@intel.com> wrote:> Current Xen only supports to pass-through primary gfx card. The secondary gfx pass-through patch is not in Xen yet. I think it needs to think more clearly about secondary gfx pass-through usage and implementation. > > Regards, > WeidongDo you have a patch for secondary passthru on Xen 4? I seem to recall somebody had been successful with secondary passthru using an additional patch but I cannot find it. I''d like to give it a try, I have one system with 2 x radeon x1950''s and another with Quadro FX380 and GeForce 9500 GT, both currently running X, xen 3.4.2 with 2.6.31.12 suse patched dom0. Andy> > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Christian Tramnitz > Sent: Thursday, February 04, 2010 8:15 PM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough > > Thanks for updating those patches to current xen. > > Is IGD pass-through also supposed to work when the IGD is not the > primary gfx card? > > > Best regards, > Christian > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Weidong Han
2010-Feb-08 03:27 UTC
Re: [Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
Andrew Lyon wrote:> On Fri, Feb 5, 2010 at 2:11 AM, Han, Weidong <weidong.han@intel.com> wrote: > >> Current Xen only supports to pass-through primary gfx card. The secondary gfx pass-through patch is not in Xen yet. I think it needs to think more clearly about secondary gfx pass-through usage and implementation. >> >> Regards, >> Weidong >> > > Do you have a patch for secondary passthru on Xen 4? I seem to recall >No, we won''t push this support in Xen 4, because it still needs more thinking about secondary gfx passthru usage and implementation.> somebody had been successful with secondary passthru using an > additional patch but I cannot find it. >You can search subject "graphics passthrough with VT-d" in xen-devel mailing list. There are lots of discussion in the thread. I attached the mail which contains the patches for secondary gfx passthrough with some other hacks. You can have a try with them. Regards, Weidong> I''d like to give it a try, I have one system with 2 x radeon x1950''s > and another with Quadro FX380 and GeForce 9500 GT, both currently > running X, xen 3.4.2 with 2.6.31.12 suse patched dom0. > > Andy > > >> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Christian Tramnitz >> Sent: Thursday, February 04, 2010 8:15 PM >> To: xen-devel@lists.xensource.com >> Subject: [Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough >> >> Thanks for updating those patches to current xen. >> >> Is IGD pass-through also supposed to work when the IGD is not the >> primary gfx card? >> >> >> Best regards, >> Christian >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Sander Eikelenboom
2010-Feb-13 12:52 UTC
Re: [Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
Hello Weidong, I was unable to open the mail you attachted to this post to the xen-devel mailinglist. Could you give a pointer to the date you posted the original extra patches for secondary gfx passthrough ? -- Sander Monday, February 8, 2010, 4:27:14 AM, you wrote:> Andrew Lyon wrote: >> On Fri, Feb 5, 2010 at 2:11 AM, Han, Weidong <weidong.han@intel.com> wrote: >> >>> Current Xen only supports to pass-through primary gfx card. The secondary gfx pass-through patch is not in Xen yet. I think it needs to think more clearly about secondary gfx pass-through usage and implementation. >>> >>> Regards, >>> Weidong >>> >> >> Do you have a patch for secondary passthru on Xen 4? I seem to recall >> > No, we won''t push this support in Xen 4, because it still needs more > thinking about secondary gfx passthru usage and implementation. >> somebody had been successful with secondary passthru using an >> additional patch but I cannot find it. >> > You can search subject "graphics passthrough with VT-d" in xen-devel > mailing list. There are lots of discussion in the thread. I attached the > mail which contains the patches for secondary gfx passthrough with some > other hacks. You can have a try with them.> Regards, > Weidong>> I''d like to give it a try, I have one system with 2 x radeon x1950''s >> and another with Quadro FX380 and GeForce 9500 GT, both currently >> running X, xen 3.4.2 with 2.6.31.12 suse patched dom0. >> >> Andy >> >> >>> -----Original Message----- >>> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Christian Tramnitz >>> Sent: Thursday, February 04, 2010 8:15 PM >>> To: xen-devel@lists.xensource.com >>> Subject: [Xen-devel] Re: [PATCH 0/3] VT-d: support Intel IGD passthrough >>> >>> Thanks for updating those patches to current xen. >>> >>> Is IGD pass-through also supposed to work when the IGD is not the >>> primary gfx card? >>> >>> >>> Best regards, >>> Christian >>> >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xensource.com >>> http://lists.xensource.com/xen-devel >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xensource.com >>> http://lists.xensource.com/xen-devel >>> >>>-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel