Re: [Qemu-devel] how to add one pcie device to qemu

2010-07-13 Thread Isaku Yamahata
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 manda

Re: [Qemu-devel] how to add one pcie device to qemu

2010-07-13 Thread Lisa Lei
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? tha

Re: [Qemu-devel] how to add one pcie device to qemu

2010-07-05 Thread Isaku Yamahata
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

Re: [Qemu-devel] how to add one pcie device to qemu

2010-07-05 Thread Lisa Lei
On Wed, Jun 30, 2010 at 9:48 PM, Isaku Yamahata 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 > > su

Re: [Qemu-devel] how to add one pcie device to qemu

2010-06-30 Thread Isaku Yamahata
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 Apri

[Qemu-devel] how to add one pcie device to qemu

2010-06-30 Thread Lisa Lei
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.