From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ritu kaur Subject: Re: [Xen-devel] Re: pci passthrough and Xenserver Date: Wed, 10 Mar 2010 09:48:06 -0800 Message-ID: <29b32d341003100948o5e5dc687ke6847f0373166f4a@mail.gmail.com> References: <29b32d341003081159x758dce8s15f29b4fc03a72d1@mail.gmail.com> <15863915.27.1268087855741.JavaMail.root@zimbra5> <29b32d341003091707y4f1fee12ucf50f4228e74007a@mail.gmail.com> <29b32d341003091729p6d43407eu79acc3b2f90b3b6e@mail.gmail.com> <1268237158.11737.70432.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0028838407==" Return-path: In-Reply-To: <1268237158.11737.70432.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , "xen-users@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0028838407== Content-Type: multipart/alternative; boundary=000e0cd105228f2824048175e614 --000e0cd105228f2824048175e614 Content-Type: text/plain; charset=ISO-8859-1 Hi Ian, Thank for the inputs, will try this out. Thanks On Wed, Mar 10, 2010 at 8:05 AM, Ian Campbell wrote: > Please don't cross-post. > > On Wed, 2010-03-10 at 01:29 +0000, Ritu kaur wrote: > > Hi, > > > > I had additional questions(I re-read the Assign_hardware...), and I > > don't quite follow it completely. The config given is for dom0, it > > doesn't have any information as to what domU will get access to this > > pci device? Do I need to change config in domU as well, document > > doesn't say anything about it. Furthermore, in the document I see > > references to "xm pci-list-assignable-devices" cli's, however, XCP > > comes with xe tool-stack, does it come with similar pci commands? I am > > yet to install XCP, but wanted to check. > > With XenAPI you can set the VM.other-config:pci key to a comma separated > list of "/" where bus should always be 0 and is the > bus-device-function as seen in domain 0. For example to pass device > 0000:07:10.0 through to a guest try: > > xe vm-param-set uuid= other-config:pci=0000:07:10.0 > > You may need to manually load the pciback module first. > > Ian. > > > > > Thanks > > > > > > On Tue, Mar 9, 2010 at 5:07 PM, Ritu kaur > > wrote: > > Hi, > > > > I did go through vmops.ml and I really didn't get much > > information on what config file it is reading or what changes > > are needed. I looked at > > > http://wiki.xensource.com/xenwiki/Assign_hardware_to_DomU_with_PCIBack_as_modulefrom the link given by Dullor, not sure whether those changes suffice XCP > for pci passthrough hence thought of checking. Any inputs? > > > > Thanks > > > > On Mon, Mar 8, 2010 at 2:37 PM, James Troup > > wrote: > > > > > > No PCI passthrough for XenServer AFAIK. > > You need XCP for that and then it is still very > > experimental with NO documentation except what is in > > the code. > > Line 483+ > > > http://xenbits.xen.org/xapi/xen-api.hg?file/a8decf9d3bee/ocaml/xapi/vmops.ml > > > > > > > > ----- Original Message ----- > > From: "Ritu kaur" > > To: xen-devel@lists.xensource.com, > > xen-users@lists.xensource.com > > Sent: Tuesday, 9 March, 2010 6:29:49 AM > > Subject: [Xen-users] pci passthrough and Xenserver > > > > Hi, > > > > We are running Citrix Xenserver 5.5(dom0) and PV > > guests(domU). Since VT-d support is not required for > > PV guests has anyone tried pci passthrough with Citrix > > Xenserver? If yes what config file changes are > > required in domU and dom0? I looked at Citrix forums > > and xen.org/xen-users archives, not getting useful > > information from it. Inputs much appreciated. > > > > Thanks > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > > > --000e0cd105228f2824048175e614 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Ian,

Thank for the inputs, will try this out.

Thanks

On Wed, Mar 10, 2010 at 8:05 AM, Ian Campb= ell <Ian.Ca= mpbell@citrix.com> wrote:
Please don't = cross-post.

On Wed, 2010-03-10 at 01:29 +0000, Ritu kaur wrote:
> Hi,
>
> I had additional questions(I re-read the Assign_hardware...), and I > don't quite follow it completely. The config given is for dom0, it=
> doesn't have any information as to what domU will get access to th= is
> pci device? Do I need to change config in domU as well, document
> doesn't say anything about it. Furthermore, in the document I see<= br> > references to "xm pci-list-assignable-devices" cli's, ho= wever, XCP
> comes with xe tool-stack, does it come with similar pci commands? I am=
> yet to install XCP, but wanted to check.

With XenAPI you can set the VM.other-config:pci key to a comma separa= ted
list of "<bus>/<bdf>" where bus should always be 0 an= d <bdf> is the
bus-device-function as seen in domain 0. For example to pass device
0000:07:10.0 through to a guest try:

xe vm-param-set uuid=3D<uuid> other-config:pci=3D0000:07:10.0

You may need to manually load the pciback module first.

Ian.

>
> Thanks
>
>
> On Tue, Mar 9, 2010 at 5:07 PM, Ritu kaur <ritu.kaur.us@gmail.com>
> wrote:
> =A0 =A0 =A0 =A0 Hi,
>
> =A0 =A0 =A0 =A0 I did go through =A0vmops.ml and I really didn't get much
> =A0 =A0 =A0 =A0 information on what config file it is reading or what = changes
> =A0 =A0 =A0 =A0 are needed. I looked at
> =A0 =A0 =A0 =A0 http://wiki.xensou= rce.com/xenwiki/Assign_hardware_to_DomU_with_PCIBack_as_module from the= link given by Dullor, not sure whether those changes suffice XCP for pci p= assthrough hence thought of checking. Any inputs?
>
> =A0 =A0 =A0 =A0 Thanks
>
> =A0 =A0 =A0 =A0 On Mon, Mar 8, 2010 at 2:37 PM, James Troup
> =A0 =A0 =A0 =A0 <james@l= inuxterminal.com> wrote:
>
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 No PCI passthrough for XenServer AFAIK= .
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 You need XCP for that and then it is s= till very
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 experimental with NO documentation exc= ept what is in
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 the code.
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Line 483+
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http:/= /xenbits.xen.org/xapi/xen-api.hg?file/a8decf9d3bee/ocaml/xapi/vmops.ml<= br> >
>
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ----- Original Message -----
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 From: "Ritu kaur" <ritu.kaur.us@gmail.com>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 To: xen-devel@lists.xensource.com,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 xen-users@lists.xensource.com
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Sent: Tuesday, 9 March, 2010 6:29:49 A= M
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Subject: [Xen-users] pci passthrough a= nd Xenserver
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Hi,
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 We are running Citrix Xenserver 5.5(do= m0) and PV
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 guests(domU). Since VT-d support is no= t required for
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PV guests has anyone tried pci passthr= ough with Citrix
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Xenserver? If yes what config file cha= nges are
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 required in domU and dom0? I looked at= Citrix forums
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 and xen.org/xen-users archives, not getting useful
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 information from it. Inputs much appre= ciated.
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Thanks
>
>
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ______________________________________= _________
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Xen-users mailing list
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Xen-users@lists.xensource.com
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://lists.xensource.com/xen-users
>
>



--000e0cd105228f2824048175e614-- --===============0028838407== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users --===============0028838407==--