Tim Moore
2009-Aug-29 13:48 UTC
[Xen-devel] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough
All, I have compiled a list of the Neocleus patches that were released in Sept 07 and apply to changeset: 15730 (a long time ago!) It looks like Neocleus have continued development and may have a more recent set of patches, see http://www.neocleus.com/ As a person with interest in this subject, I have registered for their "Insider Programme" but have not received an communication. I am very interested in what they have been working on as it all seems to be behind closed doors ! http://www.neocleus.com/insider.php Anyway here are the old set of 1:1 patches: [VTD-NEO][patch 0/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough http://markmail.org/message/xbk2o4mzz4coufzp [VTD-NEO][patch 1/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough http://markmail.org/message/emyygrqw3crbdhjy [VTD-NEO][patch 2/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough http://markmail.org/message/kpbxkyvpeiddxnga [VTD-NEO][patch 3/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough http://markmail.org/message/wqd3gvgiwwrf7ct5 [VTD-NEO][patch 4/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough http://markmail.org/message/cdqfuc6pgyz7vqpc [VTD-NEO][patch 5/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough http://markmail.org/message/nbx6pk362bdziw4u [VTD-NEO][patch 6/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough http://markmail.org/message/m2hyq2ol6r57ghhf I hope this helps explain that there is a lot more to be done, and from these patches we may be able to extract the relevant parts .. there seems to be a lot of functionality in these patches that may already be present in Xen, but I haven''t deeply reviewed the contents (and probably not the best man to do so!) Tim _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Aug-29 14:43 UTC
Re: [Xen-devel] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough
Is their code released under GPL? -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering) Technical Support Engineer Information Technology Department Asiasoft Online Pte Ltd Tampines Central 1 #04-01 Tampines Plaza Singapore 529541 Republic of Singapore Company Website: http://www.asiasoft.sg/ Mobile: +65-9648-9798 MSN: teoenming@hotmail.com Alma Maters: Singapore Polytechnic, National University of Singapore On 08/29/2009 09:48 PM, Tim Moore wrote:> > All, > > _ _ > > I have compiled a list of the Neocleus patches that were released in > Sept 07 and apply to changeset: 15730 (a long time ago!) > > It looks like Neocleus have continued development and may have a more > recent set of patches, see http://www.neocleus.com/ > > _ _ > > As a person with interest in this subject, I have registered for their > "Insider Programme" but have not received an communication. I am very > interested in what they have been working on as it all seems to be > behind closed doors ! http://www.neocleus.com/insider.php > > _ _ > > Anyway here are the old set of 1:1 patches: > > _ _ > > _[VTD-NEO][patch 0/6] Intel VT-d/Neocleus 1:1 mreged code for PCI > passthrough_ > > http://markmail.org/message/xbk2o4mzz4coufzp > > _[VTD-NEO][patch 1/6] Intel VT-d/Neocleus 1:1 mreged code for PCI > passthrough_ > > http://markmail.org/message/emyygrqw3crbdhjy > > _[VTD-NEO][patch 2/6] Intel VT-d/Neocleus 1:1 mreged code for PCI > passthrough_ > > http://markmail.org/message/kpbxkyvpeiddxnga > > _[VTD-NEO][patch 3/6] Intel VT-d/Neocleus 1:1 mreged code for PCI > passthrough_ > > http://markmail.org/message/wqd3gvgiwwrf7ct5 > > _[VTD-NEO][patch 4/6] Intel VT-d/Neocleus 1:1 mreged code for PCI > passthrough_ > > _http://markmail.org/message/cdqfuc6pgyz7vqpc_ > > _ _ > > _[VTD-NEO][patch 5/6] Intel VT-d/Neocleus 1:1 mreged code for PCI > passthrough_ > > http://markmail.org/message/nbx6pk362bdziw4u > > _[VTD-NEO][patch 6/6] Intel VT-d/Neocleus 1:1 mreged code for PCI > passthrough_ > > http://markmail.org/message/m2hyq2ol6r57ghhf > > I hope this helps explain that there is a lot more to be done, and > from these patches we may be able to extract the relevant parts .. > there seems to be a lot of functionality in these patches that may > already be present in Xen, but I haven''t deeply reviewed the contents > (and probably not the best man to do so!) > > Tim > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Keir Fraser
2009-Aug-30 07:50 UTC
Re: [Xen-devel] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough
For passthrough to HVM guests without hardware IOMMU (e.g., VT-d), I developed the attached prototype patch. I think this may already be in the XCI tree. It also applies directly to Xen 3.4 branch, and could be applied quite easily with a small amount of manual intervention to xen-unstable. If passthough on ''old'' system without hardware assistance is what you''re after, you might want to give the patch a go. -- Keir On 29/08/2009 14:48, "Tim Moore" <timothy.moore@expidas.net> wrote:> All, > > I have compiled a list of the Neocleus patches that were released in Sept 07 > and apply to changeset: 15730 (a long time ago!) > > It looks like Neocleus have continued development and may have a more recent > set of patches, see http://www.neocleus.com/ > > As a person with interest in this subject, I have registered for their > "Insider Programme" but have not received an communication. I am very > interested in what they have been working on as it all seems to be behind > closed doors ! http://www.neocleus.com/insider.php > > Anyway here are the old set of 1:1 patches: > > [VTD-NEO][patch 0/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough > http://markmail.org/message/xbk2o4mzz4coufzp > > [VTD-NEO][patch 1/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough > http://markmail.org/message/emyygrqw3crbdhjy > > [VTD-NEO][patch 2/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough > http://markmail.org/message/kpbxkyvpeiddxnga > > [VTD-NEO][patch 3/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough > http://markmail.org/message/wqd3gvgiwwrf7ct5 > > [VTD-NEO][patch 4/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough > http://markmail.org/message/cdqfuc6pgyz7vqpc > > [VTD-NEO][patch 5/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough > http://markmail.org/message/nbx6pk362bdziw4u > > [VTD-NEO][patch 6/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough > http://markmail.org/message/m2hyq2ol6r57ghhf > > I hope this helps explain that there is a lot more to be done, and from these > patches we may be able to extract the relevant parts .. there seems to be a > lot of functionality in these patches that may already be present in Xen, but > I haven''t deeply reviewed the contents (and probably not the best man to do > so!) > > Tim >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jun Koi
2009-Sep-01 09:41 UTC
Re: [Xen-devel] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough
On Sun, Aug 30, 2009 at 4:50 PM, Keir Fraser<keir.fraser@eu.citrix.com> wrote:> For passthrough to HVM guests without hardware IOMMU (e.g., VT-d), I > developed the attached prototype patch. I think this may already be in the > XCI tree. It also applies directly to Xen 3.4 branch, and could be applied > quite easily with a small amount of manual intervention to xen-unstable. If > passthough on ''old'' system without hardware assistance is what you''re after, > you might want to give the patch a go.Could you confirm that this patch alone is enough? I applied the patch against unstable code, and Xen hang up (or seems to hang up) in the middle of booting up Xen, with a black screen. Thanks, J> On 29/08/2009 14:48, "Tim Moore" <timothy.moore@expidas.net> wrote: > >> All, >> >> I have compiled a list of the Neocleus patches that were released in Sept 07 >> and apply to changeset: 15730 (a long time ago!) >> >> It looks like Neocleus have continued development and may have a more recent >> set of patches, see http://www.neocleus.com/ >> >> As a person with interest in this subject, I have registered for their >> "Insider Programme" but have not received an communication. I am very >> interested in what they have been working on as it all seems to be behind >> closed doors ! http://www.neocleus.com/insider.php >> >> Anyway here are the old set of 1:1 patches: >> >> [VTD-NEO][patch 0/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough >> http://markmail.org/message/xbk2o4mzz4coufzp >> >> [VTD-NEO][patch 1/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough >> http://markmail.org/message/emyygrqw3crbdhjy >> >> [VTD-NEO][patch 2/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough >> http://markmail.org/message/kpbxkyvpeiddxnga >> >> [VTD-NEO][patch 3/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough >> http://markmail.org/message/wqd3gvgiwwrf7ct5 >> >> [VTD-NEO][patch 4/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough >> http://markmail.org/message/cdqfuc6pgyz7vqpc >> >> [VTD-NEO][patch 5/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough >> http://markmail.org/message/nbx6pk362bdziw4u >> >> [VTD-NEO][patch 6/6] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough >> http://markmail.org/message/m2hyq2ol6r57ghhf >> >> I hope this helps explain that there is a lot more to be done, and from these >> patches we may be able to extract the relevant parts .. there seems to be a >> lot of functionality in these patches that may already be present in Xen, but >> I haven''t deeply reviewed the contents (and probably not the best man to do >> so!) >> >> Tim >> > > > _______________________________________________ > 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
Keir Fraser
2009-Sep-01 10:08 UTC
Re: [Xen-devel] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough
On 01/09/2009 10:41, "Jun Koi" <junkoi2004@gmail.com> wrote:> On Sun, Aug 30, 2009 at 4:50 PM, Keir Fraser<keir.fraser@eu.citrix.com> wrote: >> For passthrough to HVM guests without hardware IOMMU (e.g., VT-d), I >> developed the attached prototype patch. I think this may already be in the >> XCI tree. It also applies directly to Xen 3.4 branch, and could be applied >> quite easily with a small amount of manual intervention to xen-unstable. If >> passthough on ''old'' system without hardware assistance is what you''re after, >> you might want to give the patch a go. > > Could you confirm that this patch alone is enough? > > I applied the patch against unstable code, and Xen hang up (or seems > to hang up) in the middle of booting up Xen, with a black screen.The patch may need a bit more tweaking for -unstable. Let me give it a go. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jun Koi
2009-Sep-01 10:11 UTC
Re: [Xen-devel] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough
On Tue, Sep 1, 2009 at 7:08 PM, Keir Fraser<keir.fraser@eu.citrix.com> wrote:> On 01/09/2009 10:41, "Jun Koi" <junkoi2004@gmail.com> wrote: > >> On Sun, Aug 30, 2009 at 4:50 PM, Keir Fraser<keir.fraser@eu.citrix.com> wrote: >>> For passthrough to HVM guests without hardware IOMMU (e.g., VT-d), I >>> developed the attached prototype patch. I think this may already be in the >>> XCI tree. It also applies directly to Xen 3.4 branch, and could be applied >>> quite easily with a small amount of manual intervention to xen-unstable. If >>> passthough on ''old'' system without hardware assistance is what you''re after, >>> you might want to give the patch a go. >> >> Could you confirm that this patch alone is enough? >> >> I applied the patch against unstable code, and Xen hang up (or seems >> to hang up) in the middle of booting up Xen, with a black screen. > > The patch may need a bit more tweaking for -unstable. Let me give it a go.Actually that patch doesnt cleanly applied to -unstable, and I had to modify a bit of that patch manually, so it could apply to -unstable. But perhaps that is not enough? I look forward to your patch. Thanks, J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2009-Sep-01 10:28 UTC
Re: [Xen-devel] Intel VT-d/Neocleus 1:1 mreged code for PCI passthrough
On 01/09/2009 10:41, "Jun Koi" <junkoi2004@gmail.com> wrote:> On Sun, Aug 30, 2009 at 4:50 PM, Keir Fraser<keir.fraser@eu.citrix.com> wrote: >> For passthrough to HVM guests without hardware IOMMU (e.g., VT-d), I >> developed the attached prototype patch. I think this may already be in the >> XCI tree. It also applies directly to Xen 3.4 branch, and could be applied >> quite easily with a small amount of manual intervention to xen-unstable. If >> passthough on ''old'' system without hardware assistance is what you''re after, >> you might want to give the patch a go. > > Could you confirm that this patch alone is enough? > > I applied the patch against unstable code, and Xen hang up (or seems > to hang up) in the middle of booting up Xen, with a black screen.Try the attached patch. Also note that this approach only works for one HVM domain (the first you create) and that this domain needs to be allocated all of low physical memory -- this means for example that dom0 cannot allocate this memory for a swiotlb and you may need ''swiotlb=off'' on dom0''s kernel command line. You can check in /var/log/xen/xend.log to see whether you created a passthru-capable HVM guest successfully. There should be a message saying ''Domain <foo> is nativedom.'' or ''Domain <foo> is NOT nativedom.'' -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel