From: Tom Rotenberg Subject: Re: Xen 3.4 multi-function pass-through tree, isn't working... Date: Mon, 20 Jul 2009 15:11:29 +0300 Message-ID: <8686c3cd0907200511h68ae5ea8ia5a833cd40b12c08@mail.gmail.com> References: <8686c3cd0907200403w2a05cf1lfaf25dc8d7eb1821@mail.gmail.com> <20090720120459.GA31891@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090720120459.GA31891@verge.net.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Horman Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This setup worked with the plain xen 3.4 tree. No custom stuff in /etc/xen/hvm. I took a look at the bug, and wrote a workaround for it. Take a look, and tell if it's ok: diff -r 776ab1bec020 tools/python/xen/xend/server/pciif.py --- a/tools/python/xen/xend/server/pciif.py Sun Jul 19 11:53:11 2009 -0= 400 +++ b/tools/python/xen/xend/server/pciif.py Mon Jul 20 08:17:34 2009 -0= 400 @@ -499,7 +499,13 @@ num_devs =3D int(self.readBackend(devid, 'num_devs')) new_num_devs =3D 0 for i in range(num_devs): - state =3D int(self.readBackend(devid, 'state-%i' % i)) + try: + state =3D int(self.readBackend(devid, 'state-%i' % i)) + except: + state =3D xenbusState['Unknown'] + if state =3D=3D xenbusState['Closing']: # Detach I/O resources. pci_dev =3D parse_pci_name(self.readBackend(devid, 'dev-%i= ' % i)) What do u think this bug is caused from? On Mon, Jul 20, 2009 at 3:04 PM, Simon Horman wrote: > On Mon, Jul 20, 2009 at 02:03:38PM +0300, Tom Rotenberg wrote: >> Hi, >> >> I have cloned and compiled the latest Xen 3.4 multifunction >> pass-through tree, you have published, and it doesn't seem to work. >> I did the following: >> 1. Reboot the machine >> 2. Binded all the usb devices to pci-back, and made them all to be mmio = aligned >> 3. Run the following command: >> =A0xm create /etc/xen/hvm xen_platform_pci=3D0 =A0pci=3D'00:1a.0' >> pci=3D'00:1a.1' pci=3D'00:1a.2' pci=3D'00:1a.7' pci=3D'00:1d.0' pci=3D'0= 0:1d.1' >> pci=3D'00:1d.2' pci=3D'00:1d.7' > > Hi Tom, > > that looks a lot like a bug to me, thanks for your comprehensive report. > A few questions. > > * Does this setup work with the regular xen-3.4-testing tree? > * Is there anything custom in /etc/xen/hvm ? > =A0If so, would it be possible for you to post a copy of that > =A0file to aid reproducing the problem? > > Thanks >