From: Simon Horman <horms@verge.net.au>
To: Tom Rotenberg <tom.rotenberg@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Possible bug with pass-through hot-plug?
Date: Thu, 8 Oct 2009 10:41:33 +1100 [thread overview]
Message-ID: <20091007234132.GE2055@verge.net.au> (raw)
In-Reply-To: <20091007225211.GD2055@verge.net.au>
On Thu, Oct 08, 2009 at 09:52:11AM +1100, Simon Horman wrote:
> On Wed, Oct 07, 2009 at 05:41:38PM +0200, Tom Rotenberg wrote:
> > Just tried it, with xen-unstable changeset: 20249, and it also doesn't work.
> >
> > When i assigned the device regularly, it was assigned to the virtual
> > BDF: 00:04.0, and the detachment worked fine, but when i caused it to
> > be registered on the virtual BDF 00:1b.0 - the detachment didn't
> > work...
> >
> > The change i made to the qemu code to make the device to be assigned
> > on 00:1b.0, is:
> >
> > diff --git a/hw/pass-through.c b/hw/pass-through.c
> > index 8d80755..2b79812 100644
> > --- a/hw/pass-through.c
> > +++ b/hw/pass-through.c
> > @@ -974,6 +974,7 @@ int insert_to_pci_devfn(char *bdf_slt)
> > return -1;
> > }
> >
> > + devfn = PCI_DEVFN(0x1b,0);
> > return __insert_to_pci_devfn(bus, dev, func, devfn, opt);
> >
> > }
> >
> >
> > Can u please check if it works on your system?
>
> Sure, will do.
Hi Tom,
I'm not having any luck reproducing this problem.
Could you check which version of qemu-xen you have,
mine is commit "allow logdirty commands while paused (unbreaks
60dbe1+8f09f4)" (743edef44f1d0da792aeb38a33bf468a4596f730) of
http://xenbits.xensource.com/git-http/qemu-xen-unstable.git
I am curious to know what the value of bdf_slt and devfn
without your modification. Could you try the following?
diff --git a/hw/pass-through.c b/hw/pass-through.c
index a97368a..4a5c016 100644
--- a/hw/pass-through.c
+++ b/hw/pass-through.c
@@ -971,11 +971,15 @@ int insert_to_pci_devfn(char *bdf_slt)
int seg, bus, dev, func, devfn;
char *opt;
+ PT_LOG("bdf_slt=\"%s\"\n", bdf_slt);
+
if ( !parse_bdf(&bdf_slt, &seg, &bus, &dev, &func, &opt, &devfn) )
{
return -1;
}
+ PT_LOG("devfn=0x%02x -> slot=0x%02x, func=0x%x\n",
+ devfn, PCI_SLOT(devfn), PCI_FUNC(devfn));
return __insert_to_pci_devfn(bus, dev, func, devfn, opt);
}
next prev parent reply other threads:[~2009-10-07 23:41 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 9:00 Possible bug with pass-through hot-plug? Tom Rotenberg
2009-10-07 9:38 ` Simon Horman
[not found] ` <8686c3cd0910070256p77f58aeat23aea646aaf82b86@mail.gmail.com>
[not found] ` <20091007120246.GA5088@verge.net.au>
2009-10-07 15:28 ` Tom Rotenberg
2009-10-07 15:41 ` Tom Rotenberg
2009-10-07 22:52 ` Simon Horman
2009-10-07 23:41 ` Simon Horman [this message]
2009-10-08 13:55 ` Tom Rotenberg
2009-10-08 22:36 ` Simon Horman
2009-10-09 8:36 ` Tom Rotenberg
2009-10-09 8:59 ` Simon Horman
2009-10-09 9:07 ` Simon Horman
2009-10-09 11:30 ` Tom Rotenberg
2009-10-09 11:47 ` Simon Horman
2009-10-09 11:49 ` Tom Rotenberg
2009-10-09 12:09 ` Simon Horman
2009-10-09 14:29 ` Tom Rotenberg
2009-10-10 1:41 ` Simon Horman
2009-10-11 9:57 ` Tom Rotenberg
2009-10-12 22:36 ` Simon Horman
2009-10-13 9:08 ` Tom Rotenberg
2009-10-13 9:43 ` Simon Horman
2009-10-13 9:52 ` Tom Rotenberg
2009-10-15 9:31 ` Simon Horman
2009-10-15 9:38 ` Tom Rotenberg
2009-10-15 11:06 ` Simon Horman
2009-10-15 14:02 ` Tom Rotenberg
2009-10-16 7:43 ` Simon Horman
2009-10-18 5:20 ` Tom Rotenberg
2009-10-19 2:09 ` Simon Horman
2009-10-19 2:27 ` Tom Rotenberg
2009-10-19 2:45 ` Simon Horman
2009-11-24 5:48 ` Simon Horman
2009-11-25 12:25 ` Tom Rotenberg
2009-11-26 13:54 ` Keir Fraser
2009-11-26 22:47 ` Simon Horman
2009-11-29 10:27 ` Tom Rotenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091007234132.GE2055@verge.net.au \
--to=horms@verge.net.au \
--cc=tom.rotenberg@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.