* [PATCH 0/3] VT-d: support Intel IGD passthrough
@ 2010-02-04 8:12 Han, Weidong
2010-02-04 8:24 ` Keir Fraser
2010-02-04 12:15 ` Christian Tramnitz
0 siblings, 2 replies; 8+ messages in thread
From: Han, Weidong @ 2010-02-04 8:12 UTC (permalink / raw)
To: xen-devel@lists.xensource.com; +Cc: Kay, Allen M, Keir Fraser
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>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
2010-02-04 8:12 [PATCH 0/3] VT-d: support Intel IGD passthrough Han, Weidong
@ 2010-02-04 8:24 ` Keir Fraser
2010-02-04 8:29 ` Han, Weidong
2010-02-04 12:15 ` Christian Tramnitz
1 sibling, 1 reply; 8+ messages in thread
From: Keir Fraser @ 2010-02-04 8:24 UTC (permalink / raw)
To: Han, Weidong, xen-devel@lists.xensource.com; +Cc: Ian Jackson, Kay, Allen M
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>
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH 0/3] VT-d: support Intel IGD passthrough
2010-02-04 8:24 ` Keir Fraser
@ 2010-02-04 8:29 ` Han, Weidong
0 siblings, 0 replies; 8+ messages in thread
From: Han, Weidong @ 2010-02-04 8:29 UTC (permalink / raw)
To: Keir Fraser, xen-devel@lists.xensource.com; +Cc: Ian Jackson, Kay, Allen M
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>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
2010-02-04 8:12 [PATCH 0/3] VT-d: support Intel IGD passthrough Han, Weidong
2010-02-04 8:24 ` Keir Fraser
@ 2010-02-04 12:15 ` Christian Tramnitz
2010-02-05 2:11 ` Han, Weidong
1 sibling, 1 reply; 8+ messages in thread
From: Christian Tramnitz @ 2010-02-04 12:15 UTC (permalink / raw)
To: xen-devel
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
2010-02-04 12:15 ` Christian Tramnitz
@ 2010-02-05 2:11 ` Han, Weidong
2010-02-06 12:51 ` Andrew Lyon
0 siblings, 1 reply; 8+ messages in thread
From: Han, Weidong @ 2010-02-05 2:11 UTC (permalink / raw)
To: Christian Tramnitz, xen-devel@lists.xensource.com
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
2010-02-05 2:11 ` Han, Weidong
@ 2010-02-06 12:51 ` Andrew Lyon
2010-02-08 3:27 ` Weidong Han
0 siblings, 1 reply; 8+ messages in thread
From: Andrew Lyon @ 2010-02-06 12:51 UTC (permalink / raw)
To: Han, Weidong; +Cc: xen-devel@lists.xensource.com
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
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
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
2010-02-06 12:51 ` Andrew Lyon
@ 2010-02-08 3:27 ` Weidong Han
2010-02-13 12:52 ` Sander Eikelenboom
0 siblings, 1 reply; 8+ messages in thread
From: Weidong Han @ 2010-02-08 3:27 UTC (permalink / raw)
To: Andrew Lyon; +Cc: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 1990 bytes --]
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
>>
>>
[-- Attachment #2: RE Xen-devel graphics passthrough with VT-d.msg --]
[-- Type: application/octet-stream, Size: 151040 bytes --]
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: [PATCH 0/3] VT-d: support Intel IGD passthrough
2010-02-08 3:27 ` Weidong Han
@ 2010-02-13 12:52 ` Sander Eikelenboom
0 siblings, 0 replies; 8+ messages in thread
From: Sander Eikelenboom @ 2010-02-13 12:52 UTC (permalink / raw)
To: Weidong Han; +Cc: xen-devel@lists.xensource.com
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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-02-13 12:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-04 8:12 [PATCH 0/3] VT-d: support Intel IGD passthrough Han, Weidong
2010-02-04 8:24 ` Keir Fraser
2010-02-04 8:29 ` Han, Weidong
2010-02-04 12:15 ` Christian Tramnitz
2010-02-05 2:11 ` Han, Weidong
2010-02-06 12:51 ` Andrew Lyon
2010-02-08 3:27 ` Weidong Han
2010-02-13 12:52 ` Sander Eikelenboom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).