From: Isaku Yamahata <yamahata@valinux.co.jp>
To: Lisa Lei <lmj1326@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] how to add one pcie device to qemu
Date: Tue, 13 Jul 2010 17:53:17 +0900 [thread overview]
Message-ID: <20100713085317.GE31689@valinux.co.jp> (raw)
In-Reply-To: <AANLkTinv6m_j6sXizg7HqTE_Fy-GTsgraaM96yihaSW7@mail.gmail.com>
Hi Lisa.
If your target device isn't pcie port switch device,
pci_bridge_xxx() aren't what you want.
Just create pci device with PCIDeviceInfo::is_express = 1.
Then its configuration space size is 4K. The rest part is
same as conventional pci.
Helper functions in pcie.c can be used, but not mandatory.
thanks,
On Tue, Jul 13, 2010 at 03:01:48PM +0800, Lisa Lei wrote:
> Thanks, Yamahata sam,
> then, could you give me so some advice about how to add one pcie device to it?
> I studied the source code, but still have no idea,
> I'm thinking that add one pcie device through pci_bridge_qdev_register() and
> device_init(),
> just like downstream and upstream, is it available?
> thanks.
> On Tue, Jul 6, 2010 at 11:22 AM, Isaku Yamahata <yamahata@valinux.co.jp> wrote:
>
> I'm using debian lenny.
>
> $ gcc --version
> gcc (Debian 4.3.2-1.1) 4.3.2
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
> On Tue, Jul 06, 2010 at 10:23:45AM +0800, Lisa Lei wrote:
> >
> >
> > On Wed, Jun 30, 2010 at 9:48 PM, Isaku Yamahata <yamahata@valinux.co.jp>
> wrote:
> >
> > On Wed, Jun 30, 2010 at 04:10:02PM +0800, Lisa Lei wrote:
> > > Hi,
> > > I'm finding the solution of how to add one pcie device which
> > emulated by
> > > systemc to qemu, such as net card. I noticed that you've been
> working on
> > Q35
> > > support for qemu, and the status of pcie port emulator is working
> on
> > April, can
> > > it be used now? thanks.
> >
> > The public repo for q35 support is avaiable as follows.
> > http://lists.nongnu.org/archive/html/qemu-devel/2010-06/msg02066.html
> >
> > I'm now trying to merge those patches to qemu upstream,
> > but not finished yet.
> > thanks,
> >
> >
> > Thanks for your reply, I have got the sourcecode now, but compile failed,
> > can you tell me the gcc version, and qemu version based on?
> > my gcc version is 3.4.6. thanks.
> >
> > --
> > yamahata
> >
> >
>
> --
> yamahata
>
>
--
yamahata
prev parent reply other threads:[~2010-07-13 8:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 8:10 [Qemu-devel] how to add one pcie device to qemu Lisa Lei
2010-06-30 13:48 ` Isaku Yamahata
2010-07-06 2:23 ` Lisa Lei
2010-07-06 3:22 ` Isaku Yamahata
2010-07-13 7:01 ` Lisa Lei
2010-07-13 8:53 ` Isaku Yamahata [this message]
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=20100713085317.GE31689@valinux.co.jp \
--to=yamahata@valinux.co.jp \
--cc=lmj1326@gmail.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).