From: Ritu kaur Subject: Re: pci hotplug in xcp Date: Thu, 8 Apr 2010 07:45:23 -0700 Message-ID: References: <81A73678E76EA642801C8F2E4823AD21565E5542A8@LONPMAILBOX01.citrite.net> <4FA716B1526C7C4DB0375C6DADBC4EA35562034B91@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0419374203==" Return-path: In-Reply-To: <4FA716B1526C7C4DB0375C6DADBC4EA35562034B91@LONPMAILBOX01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt Cc: "xen-devel@lists.xensource.com" , Dave Scott , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --===============0419374203== Content-Type: multipart/alternative; boundary=e0cb4e887b7f8d0bf20483baba3c --e0cb4e887b7f8d0bf20483baba3c Content-Type: text/plain; charset=ISO-8859-1 Thanks Ian. I have other-config:pci="" set in both my VM's. Once I have pci device binding issue solved I will try this out. Thanks On Thu, Apr 8, 2010 at 5:35 AM, Ian Pratt wrote: > > On Wed, 7 Apr 2010, Ritu kaur wrote: > > > xl pci-attach doesn't seem to work unless vm is rebooted. Steps > followed > > > > > > 1. modprobe pciback on dom0 > > > > did you bind the device to pciback before executing "xl pci-attach"? > > xl doesn't do it for you. > > Beside you need to add -priv to the qemu command line options and to do > > that you need to edit /opt/xensource/libexec/qemu-dm-wrapper for example > > adding > > > > qemu_args.append("-priv") > > > > right after > > > > qemu_args.append("pty") > > > > sorry for not mentioning this before :) > > If you want to use hotplug rather than static assignment, you should make > sure that the guest has a "pci" key (even an empty one) as this causes xapi > to take care of setting the guest up for PCI passthrough, so you don't have > to manually edit anything. E.g.: > xe vm-param-set other-config:pci="" uuid=$VMUUID > > > > Ian > > --e0cb4e887b7f8d0bf20483baba3c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Ian. I have other-config:pci=3D"" set in both my VM's.= Once I have pci device binding issue solved I will try this out.

Th= anks

On Thu, Apr 8, 2010 at 5:35 AM, Ian = Pratt <Ian.= Pratt@eu.citrix.com> wrote:
<= div class=3D"h5">> On Wed, 7 Apr 2010, Ritu kaur wrote:
> > xl pci-attach doesn't seem to work unless vm is rebooted. Ste= ps followed
> >
> > 1. modprobe pciback on dom0
>
> did you bind the device to pciback before executing "xl pci-attac= h"?
> xl doesn't do it for you.
> Beside you need to add -priv to the qemu command line options and to d= o
> that you need to edit /opt/xensource/libexec/qemu-dm-wrapper for examp= le
> adding
>
> qemu_args.append("-priv")
>
> right after
>
> qemu_args.append("pty")
>
> sorry for not mentioning this before :)

If you want to use hotplug rather than static assignment, you s= hould make sure that the guest has a "pci" key (even an empty one= ) as this causes xapi to take care of setting the guest up for PCI passthro= ugh, so you don't have to manually edit anything. E.g.:
=A0xe vm-param-set other-config:pci=3D"" uuid=3D$VMUUID



Ian


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