qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Isaku Yamahata <yamahata@valinux.co.jp>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 2/3] pci: introduce a parser for fw device path to pci device
Date: Fri, 24 Dec 2010 10:57:56 +0900	[thread overview]
Message-ID: <20101224015756.GD7603@valinux.co.jp> (raw)
In-Reply-To: <20101222120354.GA17009@redhat.com>

On Wed, Dec 22, 2010 at 02:03:55PM +0200, Michael S. Tsirkin wrote:
> On Wed, Dec 22, 2010 at 08:36:40PM +0900, Isaku Yamahata wrote:
> > On Wed, Dec 22, 2010 at 01:04:43PM +0200, Michael S. Tsirkin wrote:
> > > On Wed, Dec 22, 2010 at 07:54:49PM +0900, Isaku Yamahata wrote:
> > > > Introduce a function to parse fw device path to pci device.
> > > > the format is
> > > > /pci@{<ioport>, <mmio>}/[<fw_name>]@<slot>,<func>/.../[<fw_name>]@<slot>,<func>
> > > > 
> > > > <ioport> = "i"<ioport addr in hex>
> > > > <mmio> = <mmio addr in hex>
> > > > <slot> = slot number in hex
> > > > <func> = func number in hex
> > > > 
> > > > Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
> > > 
> > > What concerns me the most here is the use of io addresses,
> > > not sure it's the right thing for the command interface.
> > >
> > > Why do we need to support full path at all?  Can we use the id of the
> > > parent bus for this?  Supplying a bus id for the device seems like a
> > > natural way to describe a tree, with minimal need for parsing.
> > 
> > The ids of most devices are set NULL currently. So the id is useless
> > right now unfortunately.
> 
> It's up to the user to assign ids. If one doesn't one won't be able
> to activate hotplug/aer, which does not seem like a serious limitation.
> 
> > Maybe how to assign ids to all of qdevs
> > systematically would be difficult.
> 
> I don't think it's urgent. No id -> can't use some of the
> functionality. No big deal IMO.

Hmm, it's big deal for me.
How about trying id first, if failed, then trying fw device path
as fall back?

> 
> > To be honest, I don't have strong opinion for format of pci topology.
> > So far we discussed the following candidates.
> > what format do you prefer?
> > 
> > - domain:<bus>:<slot>.<func>
> >   guest assigns bus number, so this can't be used for qemu internal use.
> > - domain:00:<slot>.<func>:...:<slot>.<func>
> > - fw device path
> > - id
> >   Unfortunately id is NULL for most devices right now. So id doesn't work.
> > - any other?
> > 
> > thanks,
> > -- 
> > yamahata
> 

-- 
yamahata

  reply	other threads:[~2010-12-24  1:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-22 10:54 [Qemu-devel] [PATCH 0/3] pcie/aer: glue inject aer error into hmp Isaku Yamahata
2010-12-22 10:54 ` [Qemu-devel] [PATCH 1/3] build, pci: remove QMP dependency on core PCI code Isaku Yamahata
2010-12-22 11:06   ` [Qemu-devel] " Michael S. Tsirkin
2010-12-22 10:54 ` [Qemu-devel] [PATCH 2/3] pci: introduce a parser for fw device path to pci device Isaku Yamahata
2010-12-22 11:04   ` [Qemu-devel] " Michael S. Tsirkin
2010-12-22 11:36     ` Isaku Yamahata
2010-12-22 12:03       ` Michael S. Tsirkin
2010-12-24  1:57         ` Isaku Yamahata [this message]
2010-12-24  8:30           ` Michael S. Tsirkin
2010-12-22 10:54 ` [Qemu-devel] [PATCH 3/3] pcie/aer: glue aer error injection into qemu monitor Isaku Yamahata

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=20101224015756.GD7603@valinux.co.jp \
    --to=yamahata@valinux.co.jp \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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).