WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] pci hotplug in xcp

To: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] pci hotplug in xcp
From: Ritu kaur <ritu.kaur.us@xxxxxxxxx>
Date: Thu, 8 Apr 2010 07:45:23 -0700
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Dave Scott <Dave.Scott@xxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Thu, 08 Apr 2010 07:46:13 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=UamHCYtaA40kD+elUz5cLPKlKIZG2/K4etNXv0rla+M=; b=dCVe0sH3rbBwbkJgyNJPhEOlsir5PuuR9RxDqbzlGg9ZEAy1Ir8UxzPbAlHUd8bmMM xXLNXuZTzlhnQrfPGVr67jmgFcPqK6F0HsvwBwbBbQd45Hh9a6H+cJZcE+9oYTb/FzX5 ZQtfzetkg5eGrErAMn6U/2AeuhFK51EphYyfQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QCpwvndf/tad/iyXeGQZQs2uaYX1jpGRSuTDBTxhWc31KM3qr3yuk4I4fDvmN9/qg3 yYUeHDVe3+BalRUqV43AdVeI5QkEiQgSCKJKdGuFRtm3lFdJ4ZPKo7FNgO8V8hccWNzj xBMqEotK14M2DhMU266IHb4mIgTbfRxlGBL4s=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4FA716B1526C7C4DB0375C6DADBC4EA35562034B91@xxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <v2p29b32d341004061003ze657beeep69f1a278f3d374b8@xxxxxxxxxxxxxx> <81A73678E76EA642801C8F2E4823AD21565E5542A8@xxxxxxxxxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1004071209060.7527@kaball-desktop> <t2o29b32d341004071156s8081041av9f0a8667e932cde9@xxxxxxxxxxxxxx> <alpine.DEB.2.00.1004081153020.7041@kaball-desktop> <4FA716B1526C7C4DB0375C6DADBC4EA35562034B91@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 <Ian.Pratt@xxxxxxxxxxxxx> 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel