From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Nadolski, Ed" <Ed.Nadolski@lsi.com>
Cc: "Łukasz Oleś" <lukaszoles@gmail.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Re: [vt-d][xen4-rc6] Hangs on startup
Date: Mon, 22 Mar 2010 18:05:43 -0400 [thread overview]
Message-ID: <20100322220543.GB1073@phenom.dumpdata.com> (raw)
In-Reply-To: <8115AF16522A3D4383C1FF753036713F9B3AAA7D@cosmail01.lsi.com>
On Mon, Mar 22, 2010 at 04:11:34PM -0600, Nadolski, Ed wrote:
> > -----Original Message-----
> > From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@oracle.com]
> > Sent: Monday, March 22, 2010 2:54 PM
> > To: Nadolski, Ed
> > Cc: Łukasz Oleś; xen-devel@lists.xensource.com
> > Subject: Re: [Xen-devel] Re: [vt-d][xen4-rc6] Hangs on startup
> >
> > On Mon, Mar 22, 2010 at 03:06:48PM -0600, Nadolski, Ed wrote:
> > >
> > >
> > > > -----Original Message-----
> > >
> > > > PCI back is to be used _only_ with PV guests - you on the other
> > > > hand are running an HVM guest.
> > > >
> > > > Per the earlier statement, I would recommend you use the 'pciback'
> > > > instead of 'pci-stub' or just not compile pciback in and see what
> > > > happens. Keep in mind: PCI back module is only needed when you want
> > to
> > > > do PV PCI passthrough, which is not what you are doing.
> > >
> > > I'm confused - does that mean pci-stub must be used for device
> > assignment to an HVM guest? The VTdHowTo isn't clear on that.
> >
> > Not per say.
> >
> > xen-pciback can be used for both PV and HVM.
>
> OK then what is the difference between pciback and xen-pciback? I thought they were just a re-name, but there must be more than that if one supports HVM and the other doesn't.
That is is. Just a rename.
>
>
> > pci-stub can only be used for HVM guests.
>
> OK, but then why would I ever want to use pci-stub, if xen-pciback already does both?
Uhh.. you probably wouldn't. But the pci-stub code has been in existence
in the Linux kernel for some time..
>
>
>
> > But there seems to be a bug somewhere that when the PCI device is
> > assigned to pci-stub, pciback tries to seize it and can't find it and
> > somehow is stuck in a spin-lock. That shouldn't be happening.
> >
> > Right now I am trying to figure out if we remove from Lukasza system
> > pciback and only use pci-stub whether he still gets those MFN lookup
> > errors with his QLogic card. Those are, I believe, a seperate issue
> > from the pciback spinlock failure.
>
> Yes, those sound like two different things.
>
> I too am seeing problems with a Qlogic card in an HVM. It looks like my card's BIOS makes an INT1A call (FIND PCI DEVICE function) that fails when the HVM is booting, and the code hangs forever.
I would think this would work as the Bochs BIOS is actually being used
with real hardware. Is it possible that some data-structure that Bochs
BIOS has for the PCI enumeration is not up-to-date with the hvmloader
sets up?
What about the BDF numbers? Any chance of trying to make them 1-to-1 (so
what you see in Dom0 is what you would see in DomU)?
Maybe there is an option in QEMU to do that?
What about passing in the PCI device _after_ the OS has booted. You can
do that by using 'pci-attach' (or something) flags. That will mean no
BIOS initialization, but the qla2xxx driver might be OK with that.
> But AFAICT it looks like Lukasz's latest trace hasn't gotten to the point where it tries to load the PCI option ROM from the card. I would be interested to see if his card sees that error or not, once the MFN is resolved.
<nods>
>
> Has anyone used these Qlogic cards successfully under VT-d in a Xen HVM? I don't know of any reason why they should not work. I'm assuming (hoping) that they are virtualization-friendly enough to work under VT-d.
I think you and Lukasz are the first ones.
next prev parent reply other threads:[~2010-03-22 22:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-16 23:41 [vt-d][xen4-rc6] Hangs on startup Łukasz Oleś
2010-03-16 23:55 ` Konrad Rzeszutek Wilk
2010-03-17 8:21 ` Keir Fraser
2010-03-17 12:46 ` Ross Philipson
2010-03-17 8:02 ` Cui, Dexuan
2010-03-17 8:43 ` Cui, Dexuan
2010-03-17 18:20 ` Łukasz Oleś
2010-03-17 20:14 ` Konrad Rzeszutek Wilk
2010-03-17 21:48 ` Łukasz Oleś
2010-03-18 14:19 ` Konrad Rzeszutek Wilk
2010-03-21 22:30 ` Łukasz Oleś
2010-03-22 19:50 ` Konrad Rzeszutek Wilk
2010-03-22 21:06 ` Nadolski, Ed
2010-03-22 20:54 ` Konrad Rzeszutek Wilk
2010-03-22 22:11 ` Nadolski, Ed
2010-03-22 22:05 ` Konrad Rzeszutek Wilk [this message]
2010-03-22 22:57 ` Sander Eikelenboom
2010-03-22 21:56 ` Łukasz Oleś
2010-03-22 21:54 ` Konrad Rzeszutek Wilk
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=20100322220543.GB1073@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ed.Nadolski@lsi.com \
--cc=lukaszoles@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).