* [Qemu-devel] how to add one pcie device to qemu
@ 2010-06-30 8:10 Lisa Lei
2010-06-30 13:48 ` Isaku Yamahata
0 siblings, 1 reply; 6+ messages in thread
From: Lisa Lei @ 2010-06-30 8:10 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 297 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] how to add one pcie device to qemu
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
0 siblings, 1 reply; 6+ messages in thread
From: Isaku Yamahata @ 2010-06-30 13:48 UTC (permalink / raw)
To: Lisa Lei; +Cc: qemu-devel
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,
--
yamahata
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] how to add one pcie device to qemu
2010-06-30 13:48 ` Isaku Yamahata
@ 2010-07-06 2:23 ` Lisa Lei
2010-07-06 3:22 ` Isaku Yamahata
0 siblings, 1 reply; 6+ messages in thread
From: Lisa Lei @ 2010-07-06 2:23 UTC (permalink / raw)
To: Isaku Yamahata; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 847 bytes --]
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
>
[-- Attachment #2: Type: text/html, Size: 1493 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] how to add one pcie device to qemu
2010-07-06 2:23 ` Lisa Lei
@ 2010-07-06 3:22 ` Isaku Yamahata
2010-07-13 7:01 ` Lisa Lei
0 siblings, 1 reply; 6+ messages in thread
From: Isaku Yamahata @ 2010-07-06 3:22 UTC (permalink / raw)
To: Lisa Lei; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] how to add one pcie device to qemu
2010-07-06 3:22 ` Isaku Yamahata
@ 2010-07-13 7:01 ` Lisa Lei
2010-07-13 8:53 ` Isaku Yamahata
0 siblings, 1 reply; 6+ messages in thread
From: Lisa Lei @ 2010-07-13 7:01 UTC (permalink / raw)
To: Isaku Yamahata; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]
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
>
[-- Attachment #2: Type: text/html, Size: 2470 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] how to add one pcie device to qemu
2010-07-13 7:01 ` Lisa Lei
@ 2010-07-13 8:53 ` Isaku Yamahata
0 siblings, 0 replies; 6+ messages in thread
From: Isaku Yamahata @ 2010-07-13 8:53 UTC (permalink / raw)
To: Lisa Lei; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-07-13 8:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).